GeezerVison is showing github.com — Show Playwright test results on the CI run summary via JUnit output. … · Gherkin/HTMLPCBViewer@39e1abd
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: .github/workflows/ci.yml +16Lines changed: 16 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -117,6 +117,22 @@ jobs: |
117 | 117 | env: |
118 | 118 | PERF_WALLCLOCK_OUT: perf/wall-clock.json |
119 | 119 |
|
| 120 | + # Test table on the run summary page (#29). annotate_only writes |
| 121 | + # annotations and the job summary without creating a check run, so it |
| 122 | + # needs no checks: write and also works on PRs from forks. |
| 123 | + - name: Test summary |
| 124 | + if: always() |
| 125 | + uses: mikepenz/action-junit-report@a9170d5795813c01ab4901ffb045b52bab4ab09d # v6.5.0 |
| 126 | + with: |
| 127 | + report_paths: test-results/junit.xml |
| 128 | + check_name: Browser tests |
| 129 | + annotate_only: true |
| 130 | + require_tests: true |
| 131 | + include_passed: true |
| 132 | + detailed_summary: true |
| 133 | + group_suite: true |
| 134 | + include_time_in_summary: true |
| 135 | + |
120 | 136 | - uses: actions/upload-artifact@v7 |
121 | 137 | if: always() |
122 | 138 | with: |
|
Collapse file
Copy file name to clipboardExpand all lines: playwright.config.js +4-1Lines changed: 4 additions & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -11,7 +11,10 @@ module.exports = defineConfig({ |
11 | 11 | forbidOnly: !!process.env.CI, |
12 | 12 | retries: process.env.CI ? 1 : 0, |
13 | 13 | workers: process.env.CI ? 2 : undefined, |
14 | | - reporter: process.env.CI ? [['html'], ['list']] : 'list', |
| 14 | + // junit.xml feeds the test table on the CI run summary (#29). |
| 15 | + reporter: process.env.CI |
| 16 | + ? [['html'], ['list'], ['junit', { outputFile: 'test-results/junit.xml' }]] |
| 17 | + : 'list', |
15 | 18 |
|
16 | 19 | use: { |
17 | 20 | trace: 'on-first-retry', |
|