Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[TT-1929] make sure go.mods are tidy #1541

Merged
merged 3 commits into from
Jan 8, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading