Skip to content

Commit

Permalink
Check that go mod tidy is clean
Browse files Browse the repository at this point in the history
  • Loading branch information
sevein committed May 3, 2024
1 parent e51b8e6 commit 7f7ef0e
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,3 +52,19 @@ jobs:
- name: Run tests
run: go test -race ./...
working-directory: hack/ccp
mod:
name: Check that `go mod tidy` is clean
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Install Go
uses: actions/setup-go@v5
with:
go-version-file: hack/ccp/go.mod
cache-dependency-path: hack/ccp/go.sum
- name: Check
run: |
go mod tidy
git diff --name-only --exit-code || (echo "Please run 'go mod tidy'."; exit 1)
working-directory: hack/ccp

0 comments on commit 7f7ef0e

Please sign in to comment.