Skip to content

Commit c374a31

Browse files
authored
Add Vitest coverage for the Pi plugin (#2)
* Add Vitest coverage for the Pi plugin * Add PR test workflow
1 parent 8639722 commit c374a31

File tree

11 files changed

+3280
-8
lines changed

11 files changed

+3280
-8
lines changed

.github/workflows/test.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Test
2+
3+
on:
4+
pull_request:
5+
workflow_dispatch:
6+
7+
jobs:
8+
test:
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
- name: Check out repository
13+
uses: actions/checkout@v4
14+
15+
- name: Set up Node.js
16+
uses: actions/setup-node@v4
17+
with:
18+
node-version: 22
19+
cache: npm
20+
21+
- name: Install dependencies
22+
run: npm ci
23+
24+
- name: Run test coverage
25+
run: npm run test:coverage
26+
27+
- name: Run type check
28+
run: npm exec -- tsc --noEmit

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
node_modules/
2+
coverage/
23
.DS_Store

0 commit comments

Comments
 (0)