File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -17,16 +17,26 @@ jobs:
1717 run : npm ci
1818 - name : Install Playwright Browsers
1919 run : npx playwright install --with-deps
20- - name : Upload playwright video
20+
21+ - name : Build Angular App (Optimize for CI)
22+ run : npm run build --configuration=production
23+
24+ - name : Start Angular Server
25+ run : nohup npx http-server dist/YOUR_PROJECT_NAME -p 4200 &
26+
27+ - name : Run Playwright tests
28+ run : npx playwright test
29+
30+ - name : Upload Playwright Videos
2131 uses : actions/upload-artifact@v4
2232 if : always()
2333 with :
2434 name : playwright-videos
2535 path : playwright-report/**/video.webm
2636 retention-days : 30
27- - name : Run Playwright tests
28- run : npx playwright test
29- - uses : actions/upload-artifact@v4
37+
38+ - name : Upload Playwright Report
39+ uses : actions/upload-artifact@v4
3040 if : ${{ !cancelled() }}
3141 with :
3242 name : playwright-report
Original file line number Diff line number Diff line change @@ -77,6 +77,7 @@ export default defineConfig({
7777 webServer : {
7878 command : "npm run start" ,
7979 url : "http://localhost:4200" ,
80+ timeout : 120000 ,
8081 reuseExistingServer : ! process . env . CI ,
8182 } ,
8283} ) ;
You can’t perform that action at this time.
0 commit comments