Skip to content

Commit 1e747e5

Browse files
committed
Updating golangci-lint to v2
1 parent 37b4d48 commit 1e747e5

3 files changed

Lines changed: 9 additions & 6 deletions

File tree

.github/workflows/ci.yaml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,13 @@ jobs:
99
name: CI
1010
runs-on: ubuntu-latest
1111
steps:
12-
- uses: actions/setup-go@v5
12+
- uses: actions/checkout@v5
13+
- uses: actions/setup-go@v6
1314
with:
14-
go-version: 1.23
15-
- uses: actions/checkout@v4
16-
- run: make lint
15+
go-version: '1.25'
16+
- name: golangci-lint
17+
uses: golangci/golangci-lint-action@v9
18+
with:
19+
version: v2.11
1720
- run: make test
1821
- run: make build

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,5 @@ test: build
2424
diff -a pgx_examples_results.txt ./testdata/pgx_examples/expected_results.txt
2525

2626
lint:
27-
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s v1.62.2
27+
curl -sSfL https://golangci-lint.run/install.sh | sh -s -- v2.11.3
2828
./bin/golangci-lint run

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/ryanrolds/sqlclosecheck
22

3-
go 1.24.0
3+
go 1.25.0
44

55
require (
66
github.com/go-sql-driver/mysql v1.7.1

0 commit comments

Comments
 (0)