Skip to content

Commit 80c66e4

Browse files
Merge pull request #15 from py-dev-nandini-12/test
new python automation script
2 parents 79cee3d + 7cfd10b commit 80c66e4

File tree

4 files changed

+517
-17
lines changed

4 files changed

+517
-17
lines changed

.github/workflows/e2e-corn.yml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
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

0 commit comments

Comments
 (0)