Skip to content

Commit

Permalink
upload report as artifact and remove too large files
Browse files Browse the repository at this point in the history
  • Loading branch information
Asvarox committed Oct 27, 2024
1 parent 3135dcb commit 92c6510
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions .github/workflows/upload-e2e-test-results.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,6 @@ jobs:
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == 'failure' }}
steps:
- uses: actions/checkout@v4
- name: Setup Node
uses: './.github/templates/setup-node'
- name: Download blob reports from GitHub Actions Artifacts
id: download_artifact
uses: actions/download-artifact@v4
Expand All @@ -32,12 +29,19 @@ jobs:
else
echo "reports=true" >> $GITHUB_OUTPUT
fi
- name: Test
run: |
echo "reports=${{ steps.reports_check.outputs.reports }}"
- name: Merge into HTML Report
if: steps.reports_check.outputs.reports == 'true'
run: npx playwright merge-reports --reporter html ./all-blob-reports
- uses: actions/upload-artifact@v4
if: steps.reports_check.outputs.reports == 'true'
with:
name: test-results-html-report
path: ./playwright-report

- name: Remove files larger than 25MB (limit of Cloudflare Pages)
if: steps.reports_check.outputs.reports == 'true'
run: find ./playwright-report -type f -size +25M -delete
- name: Upload merged report
if: steps.reports_check.outputs.reports == 'true'
id: deploy-report
Expand Down

0 comments on commit 92c6510

Please sign in to comment.