Skip to content

Commit

Permalink
Merge pull request #136 from Kuadrant/verify-go-mod
Browse files Browse the repository at this point in the history
GH action verify-go-mod
  • Loading branch information
eguzki authored May 15, 2024
2 parents 190eea1 + 6eede0f commit fbb62d8
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
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

0 comments on commit fbb62d8

Please sign in to comment.