Skip to content

Commit 8e315bd

Browse files
committed
use golangci lint action
1 parent 794de4c commit 8e315bd

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

.github/workflows/build.yaml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -63,11 +63,10 @@ jobs:
6363
- name: Install tparse
6464
if: steps.cache-go-bin.outputs.cache-hit != 'true'
6565
run: go install github.com/mfridman/tparse
66-
- name: Install golangci-lint
67-
if: steps.cache-go-bin.outputs.cache-hit != 'true'
68-
run: curl -sfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $HOME/go/bin $GOLANGCI_LINT_VERSION
69-
- name: Lint
70-
run: $HOME/go/bin/golangci-lint run --timeout=5m ./...
66+
- name: golangci-lint
67+
uses: golangci/golangci-lint-action@v2
68+
with:
69+
version: v1.58.0
7170
- name: Test
7271
run: go test -failfast -race -covermode=atomic -coverprofile=coverage.txt -cover -json ./... | $HOME/go/bin/tparse
7372

0 commit comments

Comments
 (0)