Skip to content

Commit

Permalink
test: use a special account to run outlook preview (#13073)
Browse files Browse the repository at this point in the history
* test: use a special account to run outlook preview

* test: clean up the test resources for the account
  • Loading branch information
hellyzh authored Jan 20, 2025
1 parent 5922727 commit e8ef0d3
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/rerun.yml
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,16 @@ jobs:
username='${{ env.M365_USERNAME_4 }}'
echo "M365_ACCOUNT_NAME=$username" >> $GITHUB_ENV
- name: Clean resource
if: always()
run: |
npx ts-node src/scripts/clean.ts
- name: Switch M365 account
run: |
username='${{ env.M365_USERNAME_5 }}'
echo "M365_ACCOUNT_NAME=$username" >> $GITHUB_ENV
- name: Clean resource
if: always()
run: |
Expand Down
11 changes: 11 additions & 0 deletions .github/workflows/ui-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,7 @@ jobs:
M365_USERNAME_2: "[email protected]"
M365_USERNAME_3: "[email protected]"
M365_USERNAME_4: "[email protected]"
M365_USERNAME_5: "[email protected]"
M365_DISPLAY_NAME: "ttktest"
M365_TENANT_ID: ${{ secrets.TEST_CLEAN_TENANT_ID }}
M365_COLLABORATOR: "[email protected]"
Expand Down Expand Up @@ -232,6 +233,16 @@ jobs:
$user=$users[$index]
echo "account index: $index"
echo "M365_ACCOUNT_NAME=$user" >> $env:GITHUB_ENV
- name: Set m365 account for Outlook preview (unix)
if: matrix.os != 'windows-latest' && contains(matrix.test-case, 'localdebug-obo-tab') == true
run: |
echo "M365_ACCOUNT_NAME=${{ env.M365_USERNAME_5 }}" >> $GITHUB_ENV
- name: Set m365 account for Outlook preview (win)
if: matrix.os == 'windows-latest' && contains(matrix.test-case, 'localdebug-obo-tab') == true
run: |
echo "M365_ACCOUNT_NAME=${{ env.M365_USERNAME_5 }}" >> $env:GITHUB_ENV
- name: Checkout branch
uses: actions/checkout@v3
Expand Down

0 comments on commit e8ef0d3

Please sign in to comment.