Ensure library's public API has the expected level of changes (major, minor or patch) since a previous version. Built on top of assembly-differ and JustAssembly.
This task is simple wrapper of the assembly-differ
command-line tool. The arguments passed as the args
parameter are forwarded to the command-line tool. The available assembly providers and examples can be found here.
steps:
...
- task: assembly-differ@1
inputs:
args: '"assembly|$(System.DefaultWorkingDirectory)\latest-release\Library.dll" "assembly|$(System.DefaultWorkingDirectory)\Library\Library\bin\debug\netstandard2.0\Library.dll" -p=major'
Note: -p=<level>
is required to ensure failed job in case of public API changes higher or equal to the provided level, e.g. the example job will fail if the library has breaking changes. Possible values are major
, minor
and patch
.
This project is AGPL licensed.