CI steps to check for out-of-date swagger and vendor
The CI step should run the script to generate swagger documentation and will check if there are changes to the files by using git diff
. If there are changes, this would mean that the documentation is not up-to-date and the CI step should fail.
Another step will run go mod tidy and go mod vendor and again will check the state of the repo.
Edited by Lyuben Penkovski