Skip to content

Commit

Permalink
make sure go.mods are tidy
Browse files Browse the repository at this point in the history
  • Loading branch information
Tofel committed Jan 8, 2025
1 parent d9a9a59 commit 38be086
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,26 @@ jobs:
- name: Run pre-commit checks
run: |
nix develop -c sh -c "pre-commit run --hook-stage pre-commit --show-diff-on-failure --color=always"
clean-go-mods:
name: Clean go mods
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.23.3
uses: actions/setup-go@v5
with:
go-version: '1.23.3'
- name: Install gomods
run: go install github.com/jmank88/[email protected]
- name: Check out code
uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1
- name: Run gomods tidy
run: gomods tidy
- name: Ensure clean after tidy
run: |
git add --all
git diff --minimal --cached --exit-code
tools:
name: Get tool-versions
runs-on: ubuntu-latest
Expand Down

0 comments on commit 38be086

Please sign in to comment.