Skip to content

Commit

Permalink
ci: use pre-commit action instead of installing manually
Browse files Browse the repository at this point in the history
  • Loading branch information
tulir committed Dec 16, 2024
1 parent 0e616c7 commit 2a8c01e
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,8 @@ jobs:
go install honnef.co/go/tools/cmd/staticcheck@latest
export PATH="$HOME/go/bin:$PATH"
- name: Install pre-commit
run: pip install pre-commit

- name: Lint
run: pre-commit run -a
- name: Run pre-commit
uses: pre-commit/[email protected]

build:
runs-on: ubuntu-latest
Expand Down

0 comments on commit 2a8c01e

Please sign in to comment.