ci: Update GitHub Actions & linter.

This commit is contained in:
jholdstock 2025-02-26 16:12:08 +00:00 committed by Jamie Holdstock
parent 16753b34a0
commit 713ee511bd
2 changed files with 4 additions and 4 deletions

View File

@ -9,14 +9,14 @@ jobs:
go: ["1.23", "1.24"]
steps:
- name: Set up Go
uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 #v5.0.2
uses: actions/setup-go@f111f3307d8850f501ac008e886eec1fd1932a34 #v5.3.0
with:
go-version: ${{ matrix.go }}
- name: Check out source
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 #v4.1.7
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 #v4.2.2
- name: Build
run: go build ./...
- name: Install Linters
run: "curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.61.0"
run: "curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.64.5"
- name: Test and Lint
run: ./run_tests.sh

View File

@ -33,10 +33,10 @@ linters:
- reassign
- revive
- staticcheck
- tenv
- tparallel
- typecheck
- unconvert
- usestdlibvars
- usetesting
- unparam
- unused