ci: Update GitHub Actions & linter.
This commit is contained in:
parent
16753b34a0
commit
713ee511bd
6
.github/workflows/go.yml
vendored
6
.github/workflows/go.yml
vendored
@ -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
|
||||
|
||||
@ -33,10 +33,10 @@ linters:
|
||||
- reassign
|
||||
- revive
|
||||
- staticcheck
|
||||
- tenv
|
||||
- tparallel
|
||||
- typecheck
|
||||
- unconvert
|
||||
- usestdlibvars
|
||||
- usetesting
|
||||
- unparam
|
||||
- unused
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user