Skip to content

Commit afc3349

Browse files
authored
feat: add maxAttempts parameter to the acceptance test workflow (#3089)
Add retry parameter and default public acceptance tests to 1 Signed-off-by: beeradb <[email protected]>
1 parent 1c8579b commit afc3349

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.github/workflows/acceptance-public.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ jobs:
2828
testfilter: release_light
2929
envfile: ${{ inputs.network }}Acceptance.env
3030
operator_id: ${{ inputs.operator_id }}
31+
maxAttempts: 1
3132
secrets:
3233
operator_key: ${{ inputs.operator_key }}
3334

.github/workflows/acceptance-workflow.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@ on:
2626
relayTag:
2727
required: false
2828
type: string
29+
maxAttempts:
30+
required: false
31+
type: number
32+
default: 3
2933
secrets:
3034
operator_key:
3135
description: 'The ED25519, ECDSA, or DER encoded private key of the operator'
@@ -82,7 +86,7 @@ jobs:
8286
- name: Run acceptance tests
8387
uses: step-security/retry@2ab886c0de89f68f146c9b43f53e61abc59c46dc # v3.0.1
8488
with:
85-
max_attempts: 3
89+
max_attempts: ${{ inputs.maxAttempts }}
8690
timeout_minutes: 30
8791
command: npm run acceptancetest:${{ inputs.testfilter }}
8892
env:

0 commit comments

Comments
 (0)