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 c11deeb
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 @@ -41,6 +41,9 @@ jobs:
- uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go }}
- name: Check go.mod Tidiness
run: go mod tidy && git diff --exit-code
if: ${{ matrix.go == "1.16" }}
- name: Build
run: go build ./...
- name: Vet
Expand Down

0 comments on commit c11deeb

Please sign in to comment.