-
Notifications
You must be signed in to change notification settings - Fork 14
71 lines (68 loc) · 2.52 KB
/
e2e-test-report.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
name: 'E2E Test Report'
run-name: 'E2E Test Report: Commit ${{ github.sha }}'
on:
workflow_run:
workflows: ['Build release']
types:
- completed
permissions:
contents: read
actions: read
checks: write
jobs:
e2e-web-page-report:
name: E2E Web Page Report
runs-on: ubuntu-22.04
if: ${{ github.event.workflow_run.conclusion == 'success' }}
steps:
- name: Download Linux E2E test results
uses: actions/download-artifact@v4
with:
run-id: ${{ github.event.workflow_run.id }}
github-token: ${{ secrets.GITHUB_TOKEN }}
name: linux-e2e-test-results
path: linux-e2e-test-results
- uses: dorny/[email protected]
id: linux-e2e-test-results
with:
name: Linux E2E Tests
path: linux-e2e-test-results/e2e-test-report.xml
reporter: jest-junit
# Workaround for error 'fatal: not a git repository' caused by a call to 'git ls-files'
# See: https://github.com/dorny/test-reporter/issues/169#issuecomment-1583560458
max-annotations: 0
- name: Download Win E2E test results
uses: actions/download-artifact@v4
with:
run-id: ${{ github.event.workflow_run.id }}
github-token: ${{ secrets.GITHUB_TOKEN }}
name: win-e2e-test-results
path: win-e2e-test-results
- uses: dorny/[email protected]
id: win-e2e-test-results
with:
name: Win E2E Tests
path: win-e2e-test-results/e2e-test-report.xml
reporter: jest-junit
max-annotations: 0
- name: Download Mac E2E test results
uses: actions/download-artifact@v4
with:
run-id: ${{ github.event.workflow_run.id }}
github-token: ${{ secrets.GITHUB_TOKEN }}
name: mac-e2e-test-results
path: mac-e2e-test-results
- uses: dorny/[email protected]
id: mac-e2e-test-results
with:
name: Mac E2E Tests
path: mac-e2e-test-results/e2e-test-report.xml
reporter: jest-junit
max-annotations: 0
- name: E2E Test Report Summary
run: |
echo "### E2E Test Report page is ready! :rocket:" >> $GITHUB_STEP_SUMMARY
echo "And available at the following links for applicable OSs:" >> $GITHUB_STEP_SUMMARY
echo "- [Linux](${{ steps.linux-e2e-test-results.outputs.url_html }})" >> $GITHUB_STEP_SUMMARY
echo "- [Win](${{ steps.win-e2e-test-results.outputs.url_html }})" >> $GITHUB_STEP_SUMMARY
echo "- [Mac](${{ steps.mac-e2e-test-results.outputs.url_html }})" >> $GITHUB_STEP_SUMMARY