File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : CI - twd tests
2+
3+ on :
4+ push :
5+ branches : [ main ]
6+ pull_request :
7+ branches : [ main ]
8+
9+ jobs :
10+ test :
11+ runs-on : ubuntu-latest
12+
13+ steps :
14+ - name : Checkout repository
15+ uses : actions/checkout@v5
16+
17+ - name : Setup Node.js
18+ uses : actions/setup-node@v5
19+ with :
20+ node-version : 24
21+ cache : ' npm'
22+
23+ - name : Install dependencies
24+ run : npm ci
25+
26+ - name : Start Vite dev server
27+ run : |
28+ nohup npm run dev:ci > vite.log 2>&1 &
29+ npx wait-on http://localhost:5173
30+
31+ - name : Cache Puppeteer browsers
32+ uses : actions/cache@v4
33+ with :
34+ path : ~/.cache/puppeteer
35+ key : ${{ runner.os }}-puppeteer-${{ hashFiles('package-lock.json') }}
36+ restore-keys : |
37+ ${{ runner.os }}-puppeteer-
38+
39+ - name : Install Chrome for Puppeteer
40+ run : npx puppeteer browsers install chrome
41+
42+ - name : Run TWD tests
43+ run : npx twd-cli run
You can’t perform that action at this time.
0 commit comments