Skip to content

ci: pin staticcheck version #5

ci: pin staticcheck version

ci: pin staticcheck version #5

Workflow file for this run

name: CI
"on":
push:
branches: [main]
pull_request:
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Check out source
uses: actions/checkout@v5
- name: Set up Go
uses: actions/setup-go@v6
with:
go-version-file: go.mod
cache: false
- name: Check formatting
run: test -z "$(gofmt -l .)"
- name: Run tests
run: go test ./...
- name: Run vet
run: go vet ./...
- name: Install staticcheck
run: go install honnef.co/go/tools/cmd/staticcheck@v0.6.1
- name: Run staticcheck
run: |
"$(go env GOPATH)/bin/staticcheck" ./...