File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2121
2222 - name : Run linter
2323 uses : golangci/golangci-lint-action@1e7e51e771db61008b38414a730f564565cf7c20 # v9
24- with :
25- version : v2.9.0
Original file line number Diff line number Diff line change 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
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
You can’t perform that action at this time.
0 commit comments