File tree Expand file tree Collapse file tree 1 file changed +20
-0
lines changed
Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments