Skip to content

Commit ff348ac

Browse files
Add GitHub Actions workflow for testing with ViTest
1 parent 4aa31cd commit ff348ac

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

.github/workflows/test.yml

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

0 commit comments

Comments
 (0)