Skip to content

Commit 098bd5f

Browse files
committed
lint: enable modernize
1 parent 48e2d38 commit 098bd5f

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

.github/workflows/test.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
runs-on: ubuntu-latest
1515
strategy:
1616
matrix:
17-
go: ["1.24"]
17+
go: ["1.25"]
1818
steps:
1919
- uses: actions/checkout@v4
2020
- uses: actions/setup-go@v5
@@ -23,7 +23,7 @@ jobs:
2323
- name: Run tests
2424
run: |
2525
go test -v -race -coverprofile=coverage.txt -covermode=atomic -coverpkg=./... ./...
26-
- if: ${{ matrix.go == '1.24' }}
26+
- if: ${{ matrix.go == '1.25' }}
2727
uses: shogo82148/actions-goveralls@v1
2828
with:
2929
path-to-profile: coverage.txt
@@ -35,12 +35,12 @@ jobs:
3535
- uses: actions/checkout@v4
3636
- uses: actions/setup-go@v5
3737
with:
38-
go-version: "1.24"
38+
go-version: "1.25"
3939
cache: false
4040
- name: Run lint
4141
uses: golangci/golangci-lint-action@v8
4242
with:
43-
version: v2.1
43+
version: v2.6
4444
args: --timeout 5m
4545

4646
govulncheck:

.golangci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ linters:
1414
- errcheck
1515
- ineffassign
1616
- staticcheck
17+
- modernize
18+
- sqlclosecheck
1719
settings:
1820
errcheck:
1921
exclude-functions:

0 commit comments

Comments
 (0)