Skip to content

Commit

Permalink
circleci: added step to ensure no generated files are modified by hand
Browse files Browse the repository at this point in the history
  • Loading branch information
gbotrel committed Sep 4, 2020
1 parent a006840 commit 75145a4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ jobs:
- run: go test -v ./cmd/ -run=VersionIsGenerated # ensure version is generated
- run: go get golang.org/x/tools/cmd/goimports
- run: go generate ./...
- run: git update-index --assume-unchanged go.mod
- run: git update-index --assume-unchanged go.sum
- run: if [[ -n $(git status --porcelain) ]]; then echo "Git repo is dirty after runing go generate -- please don't modify generated files"; echo $(git diff);echo $(git status --porcelain); exit 1; fi
- run: gotestsum --junitfile /tmp/test-results/results.xml -- ./... -short -v -tags debug
- store_test_results:
path: /tmp/test-results
Expand Down

0 comments on commit 75145a4

Please sign in to comment.