Skip to content

Commit fe96ee7

Browse files
committed
update golangci-lint
1 parent 3a0621d commit fe96ee7

File tree

2 files changed

+5
-8
lines changed

2 files changed

+5
-8
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,27 +18,24 @@ jobs:
1818
steps:
1919
- name: Check out code
2020
uses: actions/checkout@v3
21-
with:
22-
fetch-depth: 2
2321

2422
- uses: actions/setup-go@v5
2523
with:
26-
go-version: '^1.23.4'
27-
- run: go version
24+
go-version-file: go.mod
2825

2926
- name: Install gofumpt
3027
run: go install mvdan.cc/gofumpt@latest
3128

32-
- name: Add gofumpt to PATH
29+
- name: Add go bin to PATH
3330
run: echo "$GOPATH/bin" >> $GITHUB_PATH
3431

3532
- name: Run gofumpt
3633
run: diff <(echo -n) <(gofumpt -d .)
3734

3835
- name: golangci-lint
39-
uses: golangci/golangci-lint-action@v6
36+
uses: golangci/golangci-lint-action@v9
4037
with:
41-
version: v1.62.2
38+
version: v2.7
4239
args: --verbose --timeout=3m
4340

4441
- name: Test

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ GOCMD=GO111MODULE=on go
33
linters-install:
44
@golangci-lint --version >/dev/null 2>&1 || { \
55
echo "installing linting tools..."; \
6-
curl -sfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s v1.62.2; \
6+
curl -sfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s v2.7.2; \
77
}
88

99
lint: linters-install

0 commit comments

Comments
 (0)