Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GH action verify-go-mod #136

Merged
merged 1 commit into from
May 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -152,3 +152,17 @@ jobs:
- name: Verify generate command
run: |
make verify-generate
verify-go-mod:
name: Verify go.mod
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.21.x
uses: actions/setup-go@v4
with:
go-version: 1.21.x
id: go
- name: Check out code
uses: actions/checkout@v4
- name: Verify generate command
run: |
make verify-go-mod
5 changes: 5 additions & 0 deletions make/verify.mk
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,8 @@ verify-tidy: fmt ## Verify tidy update.
.PHONY: verify-generate
verify-generate: generate ## Verify generate update.
git diff --exit-code ./api ./controllers

.PHONY: verify-go-mod
verify-go-mod: ## Verify go.mod matches source code
go mod tidy
git diff --exit-code ./go.mod
Loading