Skip to content

Commit 777480a

Browse files
committed
modify timeout + steps of ci
1 parent b2698a6 commit 777480a

2 files changed

Lines changed: 15 additions & 4 deletions

File tree

.github/workflows/playwright.yml

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff 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

playwright.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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
});

0 commit comments

Comments
 (0)