Skip to content

Commit 6f423a5

Browse files
committed
Refactor golangci-lint installation and execution steps in CI workflow
1 parent 68b94a4 commit 6f423a5

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

.github/workflows/go-setup-lint.yaml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,14 @@ jobs:
6060
run: |
6161
go vet -unsafeptr=false $(go list ./... | grep -v /vendor/)
6262
63-
- name: Install and Run golangci-lint
63+
- name: Install golangci-lint
64+
uses: golangci/golangci-lint-action@v9
65+
with:
66+
version: ${{ inputs.golangci-lint-version }}
67+
install-only: true
68+
69+
- name: Run golangci-lint
6470
run: |
65-
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin ${{ inputs.golangci-lint-version }}
6671
golangci-lint run --output.checkstyle.path=golangci-report.xml || true
6772
6873
- name: Upload lint results

0 commit comments

Comments
 (0)