Skip to content

Commit

Permalink
fixup! amend! ci: upload Playwright tests' results even in PR builds
Browse files Browse the repository at this point in the history
Signed-off-by: Johannes Schindelin <[email protected]>
  • Loading branch information
dscho committed Sep 26, 2024
1 parent 99e9f7e commit a15f60f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion playwright.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ module.exports = defineConfig({
/* Uses 'github' for GitHub Actions CI to generate annotations, otherwise 'html' */
reporter: [
[ 'html' ],
...(process.env.CI && process.env.PLAYWRIGHT_TEST_URL === 'http://localhost:5000/' ? [ 'github' ] : [])
...(process.env.CI && process.env.PLAYWRIGHT_TEST_URL === 'http://localhost:5000/'
? [ 'github', { outputFile: 'test-results.json' } ] : [])
],
/* Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions. */
use: {
Expand Down

0 comments on commit a15f60f

Please sign in to comment.