File tree Expand file tree Collapse file tree 3 files changed +35
-2
lines changed Expand file tree Collapse file tree 3 files changed +35
-2
lines changed Original file line number Diff line number Diff line change @@ -126,6 +126,23 @@ jobs:
126126 PAYLOAD_PUBLIC_SERVER_URL : http://localhost:3001
127127 PAYLOAD_PUBLIC_CMS_URL : http://localhost:3001/admin
128128
129+ - name : Collect Playwright Reports
130+ if : always()
131+ run : |
132+ mkdir -p playwright-report
133+ # Copy web app report if it exists
134+ if [ -d "apps/web/playwright-report" ]; then
135+ cp -r apps/web/playwright-report/* playwright-report/ 2>/dev/null || true
136+ fi
137+ # Copy CMS report if it exists
138+ if [ -d "apps/cms/playwright-report" ]; then
139+ cp -r apps/cms/playwright-report/* playwright-report/ 2>/dev/null || true
140+ fi
141+ # Create a simple index if no reports were found
142+ if [ ! -d "playwright-report" ] || [ -z "$(ls -A playwright-report 2>/dev/null)" ]; then
143+ echo "No Playwright reports found" > playwright-report/index.html
144+ fi
145+
129146 - name : Upload Playwright Report
130147 uses : actions/upload-artifact@v4
131148 if : always()
Original file line number Diff line number Diff line change @@ -18,7 +18,16 @@ export default defineConfig({
1818 /* Opt out of parallel tests on CI. */
1919 workers : process . env . CI ? 1 : undefined ,
2020 /* Reporter to use. See https://playwright.dev/docs/test-reporters */
21- reporter : 'html' ,
21+ reporter : [
22+ [
23+ 'html' ,
24+ {
25+ outputFolder : process . env . CI
26+ ? '../../playwright-report'
27+ : 'playwright-report' ,
28+ } ,
29+ ] ,
30+ ] ,
2231 /* Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions. */
2332 use : {
2433 /* Base URL to use in actions like `await page.goto('/')`. */
Original file line number Diff line number Diff line change @@ -15,7 +15,14 @@ export default defineConfig({
1515 workers : process . env . CI ? 1 : undefined ,
1616 /* Reporter to use. See https://playwright.dev/docs/test-reporters */
1717 reporter : [
18- [ 'html' ] ,
18+ [
19+ 'html' ,
20+ {
21+ outputFolder : process . env . CI
22+ ? '/home/runner/work/overland/overland/playwright-report'
23+ : 'playwright-report' ,
24+ } ,
25+ ] ,
1926 [ 'json' , { outputFile : 'test-results/results.json' } ] ,
2027 [ 'junit' , { outputFile : 'test-results/results.xml' } ] ,
2128 ] ,
You can’t perform that action at this time.
0 commit comments