Skip to content

Commit

Permalink
test: verify tidy
Browse files Browse the repository at this point in the history
  • Loading branch information
eguzki committed Sep 4, 2023
1 parent f9cf09a commit a625cc7
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,23 @@ jobs:
- name: Run make verify-fmt
run: |
make verify-fmt
verify-fmt:
name: Verify tidy
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.20.x
uses: actions/setup-go@v4
with:
go-version: 1.20.x
id: go
- name: Check out code
uses: actions/checkout@v3
- name: Run go mod tidy
run: |
go mod tidy
- name: Run make verify-fmt
run: |
make verify-tidy
lint:
name: Lint
runs-on: ubuntu-latest
Expand Down
4 changes: 4 additions & 0 deletions make/verify.mk
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,7 @@ verify-bundle: bundle ## Verify bundle update.
.PHONY: verify-fmt
verify-fmt: fmt ## Verify fmt update.
git diff --exit-code ./api ./controllers

.PHONY: verify-fmt
verify-tidy: fmt ## Verify fmt update.
git diff --exit-code -- go.mod go.sum

0 comments on commit a625cc7

Please sign in to comment.