Skip to content

Commit

Permalink
feat(NOJIRA-123) Add timeout input to linter (#97)
Browse files Browse the repository at this point in the history
  • Loading branch information
jhuliano authored May 15, 2024
1 parent 609e877 commit 2e38af0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/go-lint-workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ on:
ECR_REGISTRY:
required: true
inputs:
timeout:
type: string
default: "3m"
required: false
working-directory:
type: string
required: false
Expand Down Expand Up @@ -74,7 +78,7 @@ jobs:
version: ${{ inputs.golangci-lint-version }}
only-new-issues: ${{ inputs.only-new-issues }}
working-directory: ${{ inputs.working-directory }}
args: --config ${{ github.workspace }}/lint-config/config/golangci.yaml --skip-dirs="(^|/)vendor($|/)" --issues-exit-code=1 --timeout=3m
args: --config ${{ github.workspace }}/lint-config/config/golangci.yaml --skip-dirs="(^|/)vendor($|/)" --issues-exit-code=1 --timeout=${{ inputs.timeout }}

- name: Comment body
id: comment-body-content
Expand Down

0 comments on commit 2e38af0

Please sign in to comment.