File tree Expand file tree Collapse file tree 4 files changed +517
-17
lines changed Expand file tree Collapse file tree 4 files changed +517
-17
lines changed Original file line number Diff line number Diff line change 1+ name : Scheduled Playwright Tests
2+
3+ on :
4+ schedule :
5+ - cron : " */5 * * * *" # Runs every 5 minutes # Runs every 12 hours
6+
7+ defaults :
8+ run :
9+ working-directory : ./
10+
11+ permissions :
12+ contents : read # for checkout repository
13+ issues : write # for GitHub Notification
14+
15+ jobs :
16+ scheduled-e2e-tests :
17+ timeout-minutes : 35
18+ runs-on : ubuntu-latest
19+ name : Run Scheduled E2E Tests
20+
21+ steps :
22+ - name : Checkout repository
23+ uses : actions/checkout@v4
24+
25+ - name : Install Node.js
26+ uses : actions/setup-node@v4
27+ with :
28+ node-version : 22
29+
30+ - name : Install pnpm
31+ uses : pnpm/action-setup@v4
32+ with :
33+ run_install : false
34+
35+ - name : Install Playwright
36+ run : pnpm exec playwright install --with-deps
37+
38+ - name : Run E2E tests
39+ env :
40+ NEXT_PUBLIC_URL : https://e2e-nextjs-vercel-e1mnjlrul-nandinis-projects-ce9532aa.vercel.app/ # Fixed URL
41+ run : |
42+ npx playwright test || echo "Tests failed" > test-failure.log
43+
44+ - name : Upload Playwright Report
45+ uses : actions/upload-artifact@v4
46+ with :
47+ name : reports
48+ path : tests/reports/
49+ retention-days : 7
You can’t perform that action at this time.
0 commit comments