Skip to content

Commit

Permalink
ci: Require go.mod to be tidy
Browse files Browse the repository at this point in the history
This helps us prevent accidentally having an inconsistent go.mod file
after changes to dependencies.
  • Loading branch information
rhcarvalho committed May 19, 2021
1 parent 60b0ad4 commit 6360fe8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@ jobs:
run: go build ./...
- name: Vet
run: go vet ./...
- name: Check go.mod Tidiness
run: go mod tidy && git diff --exit-code
if: ${{ matrix.go == '1.16' }}
- name: Test
run: go test ./...
- name: Test (race)
Expand Down

0 comments on commit 6360fe8

Please sign in to comment.