Skip to content

Commit a15f60f

Browse files
committed
fixup! amend! ci: upload Playwright tests' results even in PR builds
Signed-off-by: Johannes Schindelin <[email protected]>
1 parent 99e9f7e commit a15f60f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

playwright.config.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ module.exports = defineConfig({
2424
/* Uses 'github' for GitHub Actions CI to generate annotations, otherwise 'html' */
2525
reporter: [
2626
[ 'html' ],
27-
...(process.env.CI && process.env.PLAYWRIGHT_TEST_URL === 'http://localhost:5000/' ? [ 'github' ] : [])
27+
...(process.env.CI && process.env.PLAYWRIGHT_TEST_URL === 'http://localhost:5000/'
28+
? [ 'github', { outputFile: 'test-results.json' } ] : [])
2829
],
2930
/* Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions. */
3031
use: {

0 commit comments

Comments
 (0)