Update linter configuration

This commit is contained in:
世界 2024-09-14 14:40:11 +08:00
parent aaaacba916
commit f845cffeac
No known key found for this signature in database
GPG key ID: CD109927C34A63C4
5 changed files with 54 additions and 36 deletions

View file

@ -1,4 +1,4 @@
name: Lint
name: lint
on:
push:
@ -24,16 +24,17 @@ jobs:
with:
fetch-depth: 0
- name: Setup Go
uses: actions/setup-go@v4
uses: actions/setup-go@v5
with:
go-version: ^1.22
go-version: ^1.23
- name: Cache go module
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: |
~/go/pkg/mod
key: go-${{ hashFiles('**/go.sum') }}
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
uses: golangci/golangci-lint-action@v6
with:
version: latest
version: latest
args: .