File tree Expand file tree Collapse file tree 1 file changed +39
-0
lines changed Expand file tree Collapse file tree 1 file changed +39
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Playwright Tests New
2+
3+ on :
4+ workflow_dispatch :
5+ inputs :
6+ preview_url :
7+ description : " Deployment preview URL"
8+ required : true
9+ type : string
10+
11+ permissions :
12+ contents : read
13+ issues : write
14+
15+ jobs :
16+ run-e2es :
17+ timeout-minutes : 35
18+ runs-on : ubuntu-latest
19+ name : Run E2E tests
20+ steps :
21+ - name : Checkout repository
22+ uses : actions/checkout@v4
23+
24+ - name : Install dependencies
25+ run : npm ci && npx playwright install --with-deps
26+
27+ - name : Run E2E tests
28+ env :
29+ NEXT_PUBLIC_URL : ${{ inputs.preview_url }}
30+ run : |
31+ npx playwright test || echo "Tests failed" > test-failure.log
32+
33+ - name : Upload Playwright Report
34+ if : always()
35+ uses : actions/upload-artifact@v4
36+ with :
37+ name : reports
38+ path : packages/dashboard/playwright/reports/
39+ retention-days : 7
You can’t perform that action at this time.
0 commit comments