Skip to content

Commit

Permalink
Merge pull request #119 from kolyshkin/ci-tidy
Browse files Browse the repository at this point in the history
ci: add go mod tidy check
  • Loading branch information
thaJeztah committed Jun 6, 2022
2 parents 1bf36f7 + 785474f commit 71f84a8
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/test.yml
Expand Up @@ -14,6 +14,10 @@ jobs:
go-version: ${{ matrix.go-version }}
- name: Checkout code
uses: actions/checkout@v3
- name: go mod tidy
run: |
make tidy
git diff --exit-code
- name: Lint
run: make lint
- name: Cross build
Expand Down
7 changes: 7 additions & 0 deletions Makefile
Expand Up @@ -19,6 +19,13 @@ test: test-local
(cd $$p; go test $(RUN_VIA_SUDO) -v .); \
done

.PHONY: tidy
tidy:
set -eu; \
for p in $(PACKAGES); do \
(cd $$p; go mod tidy); \
done

# Test the mount module against the local mountinfo source code instead of the
# release specified in its go.mod. This allows catching regressions / breaking
# changes in mountinfo.
Expand Down

0 comments on commit 71f84a8

Please sign in to comment.