Skip to content

Commit

Permalink
fail CI if go.mod changes are detected (open-policy-agent#1708)
Browse files Browse the repository at this point in the history
Signed-off-by: Priya Shetpriya.shet@gmail.com <priya.shet@gmail.com>
  • Loading branch information
sozercan authored and priyamshet committed Dec 14, 2021
1 parent c3108ca commit a6999e6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,8 @@ jobs:
run: |
make e2e-build-load-image IMG=gatekeeper-e2e:latest CRD_IMG=gatekeeper-crds:latest
make deploy IMG=gatekeeper-e2e:latest USE_LOCAL_IMG=true
# there should be no additional manifest changes
go mod tidy
# there should be no additional manifest or go.mod changes
git diff --exit-code
make test-e2e
Expand Down Expand Up @@ -190,7 +191,8 @@ jobs:
make e2e-build-load-image IMG=gatekeeper-e2e:latest CRD_IMG=gatekeeper-crds:latest
make e2e-build-load-externaldata-image
make deploy IMG=gatekeeper-e2e:latest USE_LOCAL_IMG=true ENABLE_EXTERNAL_DATA=true
# there should be no additional manifest changes
go mod tidy
# there should be no additional manifest or go.mod changes
git diff --exit-code
make test-e2e ENABLE_EXTERNAL_DATA_TESTS=1
Expand Down

0 comments on commit a6999e6

Please # to comment.