From afc33495df2cbc7692475f57df1f566222da8ea4 Mon Sep 17 00:00:00 2001 From: Brad Bowman <294617+beeradb@users.noreply.github.com> Date: Fri, 11 Oct 2024 14:55:28 -0400 Subject: [PATCH] feat: add maxAttempts parameter to the acceptance test workflow (#3089) Add retry parameter and default public acceptance tests to 1 Signed-off-by: beeradb <294617+beeradb@users.noreply.github.com> --- .github/workflows/acceptance-public.yml | 1 + .github/workflows/acceptance-workflow.yml | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/acceptance-public.yml b/.github/workflows/acceptance-public.yml index 84c2dde98..a6471a821 100644 --- a/.github/workflows/acceptance-public.yml +++ b/.github/workflows/acceptance-public.yml @@ -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 }} diff --git a/.github/workflows/acceptance-workflow.yml b/.github/workflows/acceptance-workflow.yml index 6ae4e2f66..2ec6bb5ec 100644 --- a/.github/workflows/acceptance-workflow.yml +++ b/.github/workflows/acceptance-workflow.yml @@ -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' @@ -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: