Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lint: Increase timeout to 5m #74

Merged
merged 1 commit into from
Sep 7, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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

Loading