Skip to content

Commit 522df1b

Browse files
shainovaclaude
andcommitted
ci: add unit-test workflow
Runs Vitest on every push and PR to main. Catches regressions before GitHub Pages auto-deploys main. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
1 parent bab6e66 commit 522df1b

1 file changed

Lines changed: 19 additions & 0 deletions

File tree

.github/workflows/test.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: tests
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
9+
jobs:
10+
vitest:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v4
14+
- uses: actions/setup-node@v4
15+
with:
16+
node-version: '20'
17+
cache: 'npm'
18+
- run: npm ci
19+
- run: npm test

0 commit comments

Comments
 (0)