Skip to content

Commit f5161cf

Browse files
committed
chore: ci 워크플로우 추가
1 parent 6c76be5 commit f5161cf

File tree

1 file changed

+60
-0
lines changed

1 file changed

+60
-0
lines changed

.github/workflows/ci.yml

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,65 @@
11
name: CI
22

3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
8+
jobs:
9+
test:
10+
name: Unit & Integration (Vitest)
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout
14+
uses: actions/checkout@v4
15+
16+
- name: Setup pnpm
17+
uses: pnpm/action-setup@v4
18+
with:
19+
version: 9
20+
21+
- name: Setup Node
22+
uses: actions/setup-node@v4
23+
with:
24+
node-version: 20
25+
cache: 'pnpm'
26+
27+
- name: Install dependencies
28+
run: pnpm install --frozen-lockfile
29+
30+
- name: Run Vitest
31+
run: pnpm test
32+
33+
e2e:
34+
name: E2E (Playwright)
35+
runs-on: ubuntu-latest
36+
needs: test
37+
steps:
38+
- name: Checkout
39+
uses: actions/checkout@v4
40+
41+
- name: Setup pnpm
42+
uses: pnpm/action-setup@v4
43+
with:
44+
version: 9
45+
46+
- name: Setup Node
47+
uses: actions/setup-node@v4
48+
with:
49+
node-version: 20
50+
cache: 'pnpm'
51+
52+
- name: Install dependencies
53+
run: pnpm install --frozen-lockfile
54+
55+
- name: Install Playwright browsers
56+
run: pnpm exec playwright install --with-deps
57+
58+
- name: Run Playwright tests
59+
run: pnpm e2e
60+
61+
name: CI
62+
363
on:
464
pull_request_target:
565
types:

0 commit comments

Comments
 (0)