ci: fix lint job
This commit is contained in:
10
.github/workflows/go.yml
vendored
10
.github/workflows/go.yml
vendored
@@ -2,6 +2,9 @@ name: Go
|
|||||||
|
|
||||||
on: [push, pull_request]
|
on: [push, pull_request]
|
||||||
|
|
||||||
|
env:
|
||||||
|
GOTOOLCHAIN: local
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
lint:
|
lint:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@@ -29,8 +32,5 @@ jobs:
|
|||||||
go install honnef.co/go/tools/cmd/staticcheck@latest
|
go install honnef.co/go/tools/cmd/staticcheck@latest
|
||||||
export PATH="$HOME/go/bin:$PATH"
|
export PATH="$HOME/go/bin:$PATH"
|
||||||
|
|
||||||
- name: Install pre-commit
|
- name: Run pre-commit
|
||||||
run: pip install pre-commit
|
uses: pre-commit/action@v3.0.1
|
||||||
|
|
||||||
- name: Lint
|
|
||||||
run: pre-commit run -a
|
|
||||||
|
|||||||
Reference in New Issue
Block a user