Skip to content

Commit 18798d3

Browse files
committed
ci: add twd cli
1 parent b73134f commit 18798d3

1 file changed

Lines changed: 43 additions & 0 deletions

File tree

.github/workflows/ci.yml

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

0 commit comments

Comments
 (0)