File tree Expand file tree Collapse file tree 1 file changed +59
-0
lines changed
Expand file tree Collapse file tree 1 file changed +59
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Process E2E Testing
2+
3+ on :
4+ workflow_dispatch :
5+ push :
6+ branches :
7+ - main
8+ - feature/e2e-ci
9+
10+ jobs :
11+ build-and-push :
12+ runs-on : ubuntu-latest
13+
14+ steps :
15+ - name : Checkout code
16+ uses : actions/checkout@v4
17+
18+ - name : Set up Node.js
19+ uses : actions/setup-node@v4
20+ with :
21+ node-version : 23
22+
23+ - name : Install dependencies
24+ run : |
25+ npm install -g pnpm
26+ pnpm install --frozen-lockfile
27+
28+ - name : Start application server
29+ run : |
30+ pnpm start
31+ env :
32+ CI : true
33+
34+ - name : Wait for server
35+ run : npx wait-on http://localhost:3000
36+
37+ - name : Run Cypress tests
38+ uses : cypress-io/github-action@v6
39+ with :
40+ browser : chrome
41+ headless : true
42+ record : false
43+ wait-on : ' http://localhost:3000'
44+ wait-on-timeout : 120
45+ install : false
46+ env :
47+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
48+ NEXT_PUBLIC_BASE_URL : ' http://localhost:3000'
49+ NEXT_PUBLIC_CHANNELTALK_PLUGIN_KEY : ' test_key'
50+ NEXT_PUBLIC_GA_ID : ' '
51+ NEXT_PUBLIC_SENTRY_AUTH_TOKEN : ' test_sentry_token'
52+ NEXT_PUBLIC_SENTRY_DSN : ' test_sentry_dsn'
53+
54+ - name : Upload screenshots
55+ uses : actions/upload-artifact@v4
56+ if : failure()
57+ with :
58+ name : cypress-screenshots
59+ path : cypress/screenshots
You can’t perform that action at this time.
0 commit comments