File tree Expand file tree Collapse file tree 1 file changed +60
-0
lines changed
Expand file tree Collapse file tree 1 file changed +60
-0
lines changed Original file line number Diff line number Diff line change 11name : 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+
363on :
464 pull_request_target :
565 types :
You can’t perform that action at this time.
0 commit comments