File tree Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Original file line number Diff line number Diff line change 82
82
- name : Run Playwright tests
83
83
env :
84
84
PLAYWRIGHT_TEST_URL : http://localhost:5000/
85
- run : npx playwright test --project=chrome
85
+ run : npx playwright test --project=chrome
86
+ - uses : actions/upload-artifact@v4
87
+ if : always()
88
+ with :
89
+ name : playwright-report
90
+ path : playwright-report/
Original file line number Diff line number Diff line change @@ -22,7 +22,11 @@ module.exports = defineConfig({
22
22
workers : process . env . CI ? 1 : undefined ,
23
23
/* Reporter to use. See https://playwright.dev/docs/test-reporters */
24
24
/* Uses 'github' for GitHub Actions CI to generate annotations, otherwise 'html' */
25
- reporter : process . env . CI && process . env . PLAYWRIGHT_TEST_URL === 'http://localhost:5000/' ? 'github' : 'html' ,
25
+ reporter : [
26
+ [ 'html' ] ,
27
+ ...( process . env . CI && process . env . PLAYWRIGHT_TEST_URL === 'http://localhost:5000/'
28
+ ? [ [ 'github' ] ] : [ ] )
29
+ ] ,
26
30
/* Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions. */
27
31
use : {
28
32
/* Base URL to use in actions like `await page.goto('/')`. */
You can’t perform that action at this time.
0 commit comments