Skip to content

Commit b9761f9

Browse files
committed
chore: update golangci-lint installation method in PR check workflow
1 parent 65d5449 commit b9761f9

2 files changed

Lines changed: 5 additions & 10 deletions

File tree

.github/workflows/lint.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,3 @@ jobs:
2121

2222
- name: Run linter
2323
uses: golangci/golangci-lint-action@1e7e51e771db61008b38414a730f564565cf7c20 # v9
24-
with:
25-
version: v2.9.0

.github/workflows/pr-check.yml

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,6 @@ jobs:
1616
- name: Install pre-commit
1717
run: sudo apt-get update -y && sudo apt-get install -y pre-commit codespell gitleaks
1818

19-
- name: Install golangci/golangci-lint
20-
run: |
21-
export GOLANGCI_LINT_VERSION=2.6.2
22-
curl -sSLO "https://github.com/golangci/golangci-lint/releases/download/v${GOLANGCI_LINT_VERSION}/golangci-lint-${GOLANGCI_LINT_VERSION}-linux-amd64.tar.gz"
23-
tar -xzf golangci-lint-${GOLANGCI_LINT_VERSION}-linux-amd64.tar.gz -C /tmp
24-
mv /tmp/golangci-lint-${GOLANGCI_LINT_VERSION}-linux-amd64/golangci-lint /usr/local/bin/golangci-lint
25-
rm -rf /tmp/golangci-lint-${GOLANGCI_LINT_VERSION}-linux-amd64* golangci-lint-${GOLANGCI_LINT_VERSION}-linux-amd64.tar.gz
26-
2719
- name: Clone the code
2820
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
2921

@@ -32,5 +24,10 @@ jobs:
3224
with:
3325
go-version-file: go.mod
3426

27+
- name: Install golangci-lint
28+
uses: golangci/golangci-lint-action@v9
29+
with:
30+
install-only: true
31+
3532
- name: Check commits
3633
run: pre-commit run --hook-stage manual --all-files

0 commit comments

Comments
 (0)