Skip to content

Commit

Permalink
Add timeout input
Browse files Browse the repository at this point in the history
to control the timeout in golangci-lint

Signed-off-by: Dimitris Karakasilis <[email protected]>
  • Loading branch information
jimmykarily committed Aug 31, 2023
1 parent 80046f9 commit 46a1d90
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/reusable-linting.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ on:
required: false
type: boolean
default: true
timeout:
required: false
type: string
default: "10m"

jobs:
golangci_lint:
Expand All @@ -23,7 +27,7 @@ jobs:
env:
GOLANGCILINT_VERSION: v1.52-alpine
shell: bash
run: docker run -v $PWD:/work -w /work golangci/golangci-lint:${GOLANGCILINT_VERSION} golangci-lint run
run: docker run -v $PWD:/work -w /work golangci/golangci-lint:${GOLANGCILINT_VERSION} golangci-lint --timeout=${{ inputs.timeout }} run

hadolint:
runs-on: ubuntu-latest
Expand Down

0 comments on commit 46a1d90

Please sign in to comment.