Skip to content

Commit d2dc984

Browse files
toppercodesampagent
andcommitted
ci: use latest golangci-lint-action
Amp-Thread-ID: https://ampcode.com/threads/T-019cb11d-d0b4-724b-938e-a9eb7f44c002 Co-authored-by: Amp <amp@ampcode.com>
1 parent ef38f59 commit d2dc984

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

.github/workflows/pr.yaml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,11 @@ jobs:
3030
go-version-file: go.mod
3131
cache: false
3232

33-
- name: Install golangci-lint
34-
run: go install github.com/golangci/golangci-lint/v2/cmd/golangci-lint@latest
35-
3633
- name: Run golangci-lint
37-
run: |
38-
"$(go env GOPATH)/bin/golangci-lint" run --timeout=5m --output.text.path=stdout
34+
uses: golangci/golangci-lint-action@v8
35+
with:
36+
version: latest
37+
args: --timeout=5m
3938

4039
build:
4140
name: Build

0 commit comments

Comments
 (0)