Skip to content

Commit 774ddde

Browse files
committed
feat: add ci and latest twd version
1 parent 75e20f6 commit 774ddde

File tree

3 files changed

+51
-5
lines changed

3 files changed

+51
-5
lines changed

.github/workflows/ci.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
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 start > vite.log 2>&1 &
29+
npx wait-on http://localhost:4200
30+
env:
31+
CI: true
32+
33+
- name: Cache Puppeteer browsers
34+
uses: actions/cache@v4
35+
with:
36+
path: ~/.cache/puppeteer
37+
key: ${{ runner.os }}-puppeteer-${{ hashFiles('package-lock.json') }}
38+
restore-keys: |
39+
${{ runner.os }}-puppeteer-
40+
41+
- name: Install Chrome for Puppeteer
42+
run: npx puppeteer browsers install chrome
43+
44+
- name: Run TWD tests
45+
run: npx twd-cli run
46+

package-lock.json

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
"npm-run-all": "^4.1.5",
4646
"postcss": "^8.5.3",
4747
"tailwindcss": "^4.1.12",
48-
"twd-js": "^1.3.0-beta.2",
48+
"twd-js": "^1.3.0",
4949
"typescript": "~5.9.2",
5050
"vitest": "^4.0.8"
5151
}

0 commit comments

Comments
 (0)