Skip to content

Commit

Permalink
ci: Require go.mod to be tidy (#128)
Browse files Browse the repository at this point in the history
This prevents inconsistent go.mod/go.sum files after changes to dependencies.
  • Loading branch information
rhcarvalho authored May 19, 2021
1 parent 60b0ad4 commit 20c242c
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 20c242c

Please sign in to comment.