Skip to content

Commit 3ace65c

Browse files
authored
test: auto retry when manually running all test cases (OfficeDev#13078)
1 parent 5af9512 commit 3ace65c

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

.github/workflows/e2e-test.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,7 @@ jobs:
351351
permissions:
352352
actions: write
353353
needs: tear-down
354-
if: ${{ (github.event_name == 'schedule' || (github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == 'teamsfx-bot/TeamsFx')) && failure() && github.run_attempt < 5 }}
354+
if: ${{ (github.event_name == 'schedule' || (github.event_name == 'workflow_dispatch' && github.event.inputs.cases == '') || (github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == 'teamsfx-bot/TeamsFx')) && failure() && github.run_attempt < 5 }}
355355
runs-on: ubuntu-latest
356356
steps:
357357
- name: rerun

.github/workflows/rerun.yml

+1
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ jobs:
9797
M365_USERNAME_2: "[email protected]"
9898
M365_USERNAME_3: "[email protected]"
9999
M365_USERNAME_4: "[email protected]"
100+
M365_USERNAME_5: "[email protected]"
100101
CLEAN_CLIENT_ID: ${{ secrets.TEST_CLEAN_CLIENT_ID }}
101102
CLEAN_CLIENT_SECRET: ${{ secrets.CLEAN_CLIENT_SECRET }}
102103
CLEAN_TENANT_ID: ${{ secrets.TEST_CLEAN_TENANT_ID }}

.github/workflows/ui-test.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -552,7 +552,7 @@ jobs:
552552
permissions:
553553
actions: write
554554
needs: main
555-
if: ${{ github.event_name == 'schedule' && failure() && github.run_attempt < 5 }}
555+
if: ${{ ((github.event_name == 'workflow_dispatch' && github.event.inputs.test-case == '') || github.event_name == 'schedule') && failure() && github.run_attempt < 5 }}
556556
runs-on: ubuntu-latest
557557
steps:
558558
- name: trigger rerun workflow

0 commit comments

Comments
 (0)