Skip to content

Commit

Permalink
ci: check that proto files are in sync with generated files
Browse files Browse the repository at this point in the history
  • Loading branch information
onsails committed Nov 17, 2023
1 parent 6cbd053 commit c3fe46f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions nix/devshell.nix
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,15 @@
scripts.ci-proto.exec = ''
set -e
make clean
make proto-all
make proto-swagger-gen
# it gets updated every time, so we are ignoring this one
git checkout -- client/docs/statik/statik.go
echo "Checking diff..."
if ! git diff --exit-code; then
echo "Directory is not clean after swagger generation"
exit 1
Expand Down

0 comments on commit c3fe46f

Please sign in to comment.