mirror of
https://github.com/microsoft/playwright.git
synced 2024-10-27 13:50:25 +03:00
chore: drop run_attempt from github artifact name (#24594)
This commit is contained in:
parent
d57a3bad39
commit
8b18722181
@ -23,7 +23,7 @@ runs:
|
||||
if: always() && github.event_name == 'pull_request'
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: blob-report-${{ github.run_attempt }}
|
||||
name: all-blob-reports
|
||||
path: ${{ inputs.report_dir }}
|
||||
retention-days: 30
|
||||
- name: Write triggering pull request number in a file
|
||||
|
6
.github/workflows/create_test_report.yml
vendored
6
.github/workflows/create_test_report.yml
vendored
@ -26,12 +26,12 @@ jobs:
|
||||
- name: Download blob report artifact
|
||||
uses: ./.github/actions/download-artifact
|
||||
with:
|
||||
name: 'blob-report-${{ github.event.workflow_run.run_attempt }}'
|
||||
path: 'blob-report'
|
||||
name: all-blob-reports
|
||||
path: all-blob-reports
|
||||
|
||||
- name: Merge reports
|
||||
run: |
|
||||
npx playwright merge-reports --reporter markdown,html ./blob-report
|
||||
npx playwright merge-reports --reporter markdown,html ./all-blob-reports
|
||||
|
||||
- name: Upload HTML report to Azure
|
||||
run: |
|
||||
|
@ -33,7 +33,7 @@ export default defineConfig({
|
||||
|
||||
Blob report contains information about all the tests that were run and their results as well as all test attachments such as traces and screenshot diffs. Blob reports can be merged and converted to any other Playwright report. By default, blob report will be generated into `blob-report` directory.
|
||||
|
||||
To merge reports from multiple shards, put the blob report files into a single directory, for example `all-blob-reports`. Blob reports are generated with unique names, so they will not clash.
|
||||
To merge reports from multiple shards, put the blob report files into a single directory, for example `all-blob-reports`. Blob report names contain shard number, so they will not clash.
|
||||
|
||||
Afterwards, run `npx playwright merge-reports` command:
|
||||
|
||||
@ -77,7 +77,7 @@ jobs:
|
||||
if: always()
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: all-blob-reports--attempt-${{ github.run_attempt }}
|
||||
name: all-blob-reports
|
||||
path: blob-report
|
||||
retention-days: 1
|
||||
```
|
||||
@ -102,7 +102,7 @@ jobs:
|
||||
- name: Download blob reports from GitHub Actions Artifacts
|
||||
uses: actions/download-artifact@v3
|
||||
with:
|
||||
name: all-blob-reports--attempt-${{ github.run_attempt }}
|
||||
name: all-blob-reports
|
||||
path: all-blob-reports
|
||||
|
||||
- name: Merge into HTML Report
|
||||
|
Loading…
Reference in New Issue
Block a user