Skip to content

Commit e8ef0d3

Browse files
authored
test: use a special account to run outlook preview (OfficeDev#13073)
* test: use a special account to run outlook preview * test: clean up the test resources for the account
1 parent 5922727 commit e8ef0d3

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

.github/workflows/rerun.yml

+10
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,16 @@ jobs:
151151
username='${{ env.M365_USERNAME_4 }}'
152152
echo "M365_ACCOUNT_NAME=$username" >> $GITHUB_ENV
153153
154+
- name: Clean resource
155+
if: always()
156+
run: |
157+
npx ts-node src/scripts/clean.ts
158+
159+
- name: Switch M365 account
160+
run: |
161+
username='${{ env.M365_USERNAME_5 }}'
162+
echo "M365_ACCOUNT_NAME=$username" >> $GITHUB_ENV
163+
154164
- name: Clean resource
155165
if: always()
156166
run: |

.github/workflows/ui-test.yml

+11
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,7 @@ jobs:
192192
M365_USERNAME_2: "[email protected]"
193193
M365_USERNAME_3: "[email protected]"
194194
M365_USERNAME_4: "[email protected]"
195+
M365_USERNAME_5: "[email protected]"
195196
M365_DISPLAY_NAME: "ttktest"
196197
M365_TENANT_ID: ${{ secrets.TEST_CLEAN_TENANT_ID }}
197198
M365_COLLABORATOR: "[email protected]"
@@ -232,6 +233,16 @@ jobs:
232233
$user=$users[$index]
233234
echo "account index: $index"
234235
echo "M365_ACCOUNT_NAME=$user" >> $env:GITHUB_ENV
236+
237+
- name: Set m365 account for Outlook preview (unix)
238+
if: matrix.os != 'windows-latest' && contains(matrix.test-case, 'localdebug-obo-tab') == true
239+
run: |
240+
echo "M365_ACCOUNT_NAME=${{ env.M365_USERNAME_5 }}" >> $GITHUB_ENV
241+
242+
- name: Set m365 account for Outlook preview (win)
243+
if: matrix.os == 'windows-latest' && contains(matrix.test-case, 'localdebug-obo-tab') == true
244+
run: |
245+
echo "M365_ACCOUNT_NAME=${{ env.M365_USERNAME_5 }}" >> $env:GITHUB_ENV
235246
236247
- name: Checkout branch
237248
uses: actions/checkout@v3

0 commit comments

Comments
 (0)