Skip to content

Commit cddd6a2

Browse files
authored
ci: add go mod tidy verification step (scaleway#4729)
1 parent d29768a commit cddd6a2

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

.github/workflows/release.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,11 @@ jobs:
2222
with:
2323
go-version: '1.24'
2424

25+
- name: Verify go.mod is tidy
26+
run: |
27+
go mod tidy
28+
git diff --exit-code
29+
2530
- name: Run GoReleaser
2631
uses: goreleaser/goreleaser-action@v6
2732
with:

.github/workflows/unit-tests.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@ jobs:
2424
uses: actions/setup-go@v5
2525
with:
2626
go-version: '1.24'
27+
- name: Verify go.mod is tidy
28+
run: |
29+
go mod tidy
30+
git diff --exit-code
2731
- name: Run unit tests
2832
run: go test ./...
2933
- name: Execute main binary # Test the runtime for potential panics.

0 commit comments

Comments
 (0)