Skip to content

Commit dc72005

Browse files
committed
fix(ci): use official golangci-lint-action instead of curl install
1 parent d736fb1 commit dc72005

1 file changed

Lines changed: 7 additions & 8 deletions

File tree

.github/workflows/build.yml

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -64,15 +64,14 @@ jobs:
6464
with:
6565
go-version: '1.23'
6666

67-
- name: Install golangci-lint
68-
run: |
69-
# Download and install golangci-lint v2.6.2
70-
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v2.6.2
71-
golangci-lint --version
72-
7367
- name: Run golangci-lint
74-
run: GOOS=${{ matrix.goos }} golangci-lint run --timeout=5m --config=../.golangci.yml
75-
working-directory: src
68+
uses: golangci/golangci-lint-action@v7
69+
with:
70+
version: v2.7.2
71+
working-directory: src
72+
args: --timeout=5m --config=../.golangci.yml
73+
env:
74+
GOOS: ${{ matrix.goos }}
7675

7776
- name: Verify no linting issues
7877
if: success()

0 commit comments

Comments
 (0)