Skip to content

Commit

Permalink
feat: add maxAttempts parameter to the acceptance test workflow (#3089)
Browse files Browse the repository at this point in the history
Add retry parameter and default public acceptance tests to 1

Signed-off-by: beeradb <[email protected]>
  • Loading branch information
beeradb authored Oct 11, 2024
1 parent 1c8579b commit afc3349
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/acceptance-public.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ jobs:
testfilter: release_light
envfile: ${{ inputs.network }}Acceptance.env
operator_id: ${{ inputs.operator_id }}
maxAttempts: 1
secrets:
operator_key: ${{ inputs.operator_key }}

Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/acceptance-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ on:
relayTag:
required: false
type: string
maxAttempts:
required: false
type: number
default: 3
secrets:
operator_key:
description: 'The ED25519, ECDSA, or DER encoded private key of the operator'
Expand Down Expand Up @@ -82,7 +86,7 @@ jobs:
- name: Run acceptance tests
uses: step-security/retry@2ab886c0de89f68f146c9b43f53e61abc59c46dc # v3.0.1
with:
max_attempts: 3
max_attempts: ${{ inputs.maxAttempts }}
timeout_minutes: 30
command: npm run acceptancetest:${{ inputs.testfilter }}
env:
Expand Down

0 comments on commit afc3349

Please sign in to comment.