Skip to content

Commit 50527ae

Browse files
committed
feature: E2E 워크플로우 추가
1 parent 5c12884 commit 50527ae

File tree

1 file changed

+59
-0
lines changed

1 file changed

+59
-0
lines changed

.github/workflows/process-e2e.yaml

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

0 commit comments

Comments
 (0)