Skip to content

Commit

Permalink
lint: Increase timeout to 5m
Browse files Browse the repository at this point in the history
Signed-off-by: Enrique Llorente <[email protected]>
  • Loading branch information
qinqon committed Sep 7, 2023
1 parent 33a65e4 commit 7cbda25
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,8 @@ jobs:
uses: actions/setup-go@v1
with:
go-version: ${{ steps.go-version.outputs.minimal }}
- name: golangci-lint
uses: golangci/golangci-lint-action@v2
with:
version: v1.42.1
- name: Run lint
run: make lint
build:
runs-on: ubuntu-latest
steps:
Expand Down
9 changes: 4 additions & 5 deletions hack/lint.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
#!/bin/bash -xe

golangci_lint_version=v1.42.1
if [ ! -f $(go env GOPATH)/bin/golangci-lint ]; then
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin $golangci_lint_version
fi
golangci-lint run
version=v1.42.1
timeout=5m

go run github.com/golangci/golangci-lint/cmd/golangci-lint@$version run --timeout $timeout

0 comments on commit 7cbda25

Please sign in to comment.