Skip to content

Commit 38be086

Browse files
committed
make sure go.mods are tidy
1 parent d9a9a59 commit 38be086

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

.github/workflows/lint.yaml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,26 @@ jobs:
2121
- name: Run pre-commit checks
2222
run: |
2323
nix develop -c sh -c "pre-commit run --hook-stage pre-commit --show-diff-on-failure --color=always"
24+
25+
clean-go-mods:
26+
name: Clean go mods
27+
runs-on: ubuntu-latest
28+
steps:
29+
- name: Set up Go 1.23.3
30+
uses: actions/setup-go@v5
31+
with:
32+
go-version: '1.23.3'
33+
- name: Install gomods
34+
run: go install github.com/jmank88/[email protected]
35+
- name: Check out code
36+
uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1
37+
- name: Run gomods tidy
38+
run: gomods tidy
39+
- name: Ensure clean after tidy
40+
run: |
41+
git add --all
42+
git diff --minimal --cached --exit-code
43+
2444
tools:
2545
name: Get tool-versions
2646
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)