Skip to content

Commit

Permalink
COPY test-reporting (1/2) from Gutenberg
Browse files Browse the repository at this point in the history
  • Loading branch information
carstingaxion committed Sep 24, 2024
1 parent 2b4cc31 commit 939eb1a
Showing 1 changed file with 41 additions and 3 deletions.
44 changes: 41 additions & 3 deletions .github/workflows/e2e-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -130,9 +130,47 @@ jobs:
npm run test:e2e
- name: Retain failed test results
- name: Archive debug artifacts (screenshots, traces)
uses: actions/upload-artifact@v4
if: failure()
if: ${{ ! cancelled() }}
with:
name: test-results-${{ matrix.php }}
name: failures-artifacts--${{ matrix.php }}
path: artifacts/test-results/
if-no-files-found: ignore


- name: Archive flaky tests report
uses: actions/upload-artifact@v4
if: ${{ ! cancelled() }}
with:
name: flaky-tests-report--${{ matrix.php }}
path: flaky-tests
if-no-files-found: ignore


merge-artifacts:
name: Merge Artifacts
if: ${{ ! cancelled() }}
needs: [e2e-tests]
runs-on: ubuntu-latest
outputs:
has-flaky-test-report: ${{ !!steps.merge-flaky-tests-reports.outputs.artifact-id }}
steps:
- name: Merge failures artifacts
uses: actions/upload-artifact/merge@v4
# Don't fail the job if there aren't any artifacts to merge.
continue-on-error: true
with:
name: failures-artifacts
# Retain the merged artifacts in case of a rerun.
pattern: failures-artifacts*
delete-merged: true

- name: Merge flaky tests reports
id: merge-flaky-tests-reports
uses: actions/upload-artifact/merge@v4
continue-on-error: true
with:
name: flaky-tests-report
pattern: flaky-tests-report*
delete-merged: true

0 comments on commit 939eb1a

Please sign in to comment.