mirror of
https://github.com/microsoft/playwright.git
synced 2025-01-08 12:28:46 +03:00
devops: migrate html merge upload to Azure Federate credentials
This commit is contained in:
parent
e2c1efad9e
commit
563c9baf00
14
.github/workflows/create_test_report.yml
vendored
14
.github/workflows/create_test_report.yml
vendored
@ -9,6 +9,8 @@ jobs:
|
|||||||
permissions:
|
permissions:
|
||||||
pull-requests: write
|
pull-requests: write
|
||||||
checks: write
|
checks: write
|
||||||
|
id-token: write # This is required for OIDC login (azure/login) to succeed
|
||||||
|
contents: read # This is required for actions/checkout to succeed
|
||||||
if: ${{ github.event.workflow_run.event == 'pull_request' }}
|
if: ${{ github.event.workflow_run.event == 'pull_request' }}
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
@ -16,7 +18,12 @@ jobs:
|
|||||||
- uses: actions/setup-node@v4
|
- uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
node-version: 18
|
node-version: 18
|
||||||
|
- name: "Azure OIDC Login"
|
||||||
|
uses: azure/login@v1
|
||||||
|
with:
|
||||||
|
client-id: ${{ vars.CFS_CLIENT_ID }}
|
||||||
|
tenant-id: ${{ vars.CFS_TENANT_ID }}
|
||||||
|
subscription-id: ${{ vars.CFS_SUBSCRIPTION_ID }}
|
||||||
- run: npm ci
|
- run: npm ci
|
||||||
env:
|
env:
|
||||||
DEBUG: pw:install
|
DEBUG: pw:install
|
||||||
@ -41,10 +48,7 @@ jobs:
|
|||||||
azcopy cp --recursive "./playwright-report/*" "https://mspwblobreport.blob.core.windows.net/\$web/$REPORT_DIR"
|
azcopy cp --recursive "./playwright-report/*" "https://mspwblobreport.blob.core.windows.net/\$web/$REPORT_DIR"
|
||||||
echo "Report url: https://mspwblobreport.z1.web.core.windows.net/$REPORT_DIR/index.html"
|
echo "Report url: https://mspwblobreport.z1.web.core.windows.net/$REPORT_DIR/index.html"
|
||||||
env:
|
env:
|
||||||
AZCOPY_AUTO_LOGIN_TYPE: SPN
|
AZCOPY_AUTO_LOGIN_TYPE: AZCLI
|
||||||
AZCOPY_SPA_APPLICATION_ID: '${{ secrets.AZCOPY_SPA_APPLICATION_ID }}'
|
|
||||||
AZCOPY_SPA_CLIENT_SECRET: '${{ secrets.AZCOPY_SPA_CLIENT_SECRET }}'
|
|
||||||
AZCOPY_TENANT_ID: '${{ secrets.AZCOPY_TENANT_ID }}'
|
|
||||||
|
|
||||||
- name: Read pull request number
|
- name: Read pull request number
|
||||||
uses: ./.github/actions/download-artifact
|
uses: ./.github/actions/download-artifact
|
||||||
|
Loading…
Reference in New Issue
Block a user