Skip to content

Commit

Permalink
chore(tests): Retry E2E on error
Browse files Browse the repository at this point in the history
  • Loading branch information
khvn26 committed May 7, 2024
1 parent b66747f commit 4ee347d
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 10 deletions.
10 changes: 7 additions & 3 deletions .github/actions/e2e-bake-compose/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ runs:
password: ${{ inputs.github_token }}

- name: Bake Compose
working-directory: frontend
run: depot bake -f docker-compose-e2e-tests.yml --load
shell: bash
uses: nick-fields/retry@v3
with:
current_path: frontend
shell: bash
command: depot bake -f docker-compose-e2e-tests.yml --load
max_attempts: 2
retry_on: error
17 changes: 10 additions & 7 deletions .github/actions/e2e-tests/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,16 +33,19 @@ runs:
shell: bash

- name: Test with Chromedriver
working-directory: frontend
uses: nick-fields/retry@v3
with:
current_path: frontend
shell: bash
command: |
node -v
npm run env
npm run test -- ${{ inputs.tests }}
max_attempts: 2
retry_on: error
env:
E2E_TEST_TOKEN: ${{ inputs.e2e_test_token }}
SLACK_TOKEN: ${{ inputs.slack_token }}
STATIC_ASSET_CDN_URL: /
ENV: ${{ inputs.environment }}
GITHUB_ACTION_URL: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}

run: |
node -v
npm run env
npm run test -- ${{ inputs.tests }}
shell: bash

0 comments on commit 4ee347d

Please sign in to comment.