Skip to content

Commit

Permalink
ci(browserstack): fixing retry logic
Browse files Browse the repository at this point in the history
  • Loading branch information
tompahoward committed Jan 13, 2021
1 parent 8ae37c2 commit f344d24
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build-and-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,7 @@ jobs:
local-identifier: random
# run tests
- id: attempt-1
run: npm run cover:browser-api:${{ matrix.browser }}:remote && echo "::set-output name=result::success\n"
run: npm run cover:browser-api:${{ matrix.browser }}:remote && echo "::set-output name=result::success"
timeout-minutes: 25
continue-on-error: true
# stop tunnel
Expand All @@ -387,7 +387,7 @@ jobs:
# run tests
- id: attempt-2
if: steps.attempt-1.outputs.result != 'success'
run: npm run cover:browser-api:${{ matrix.browser }}:remote && echo "::set-output name=result::success\n"
run: npm run cover:browser-api:${{ matrix.browser }}:remote && echo "::set-output name=result::success"
timeout-minutes: 25
continue-on-error: true
# stop tunnel
Expand All @@ -412,7 +412,7 @@ jobs:
# run tests
- id: attempt-3
if: steps.attempt-1.outputs.result != 'success' && steps.attempt-2.outputs.result != 'success'
run: npm run cover:browser-api:${{ matrix.browser }}:remote && echo "::set-output name=result::success\n"
run: npm run cover:browser-api:${{ matrix.browser }}:remote && echo "::set-output name=result::success"
timeout-minutes: 25
continue-on-error: true
# stop tunnel
Expand Down

0 comments on commit f344d24

Please sign in to comment.