File tree Expand file tree Collapse file tree 3 files changed +38
-17
lines changed Expand file tree Collapse file tree 3 files changed +38
-17
lines changed Original file line number Diff line number Diff line change 1+ name : CI
2+
3+ on : pull_request
4+
5+ jobs :
6+ test :
7+ name : Test
8+ runs-on : ubuntu-latest
9+
10+ steps :
11+ - name : Checkout code
12+ uses : actions/checkout@v3
13+ - name : Setup Node
14+ uses : actions/setup-node@v3
15+ with :
16+ cache : npm
17+ - name : Install dependencies
18+ run : npm ci
19+ - name : Run tests
20+ run : npm test
21+
22+ lint :
23+ name : Lint
24+ runs-on : ubuntu-latest
25+
26+ steps :
27+ - name : Checkout code
28+ uses : actions/checkout@v3
29+ - name : Setup Node
30+ uses : actions/setup-node@v3
31+ with :
32+ cache : npm
33+ - name : Install dependencies
34+ run : npm ci
35+ - name : Type check
36+ run : npm run check
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 2020 },
2121 "scripts" : {
2222 "build" : " rollup -c" ,
23+ "check" : " tsc --noEmit" ,
24+ "check:watch" : " tsc --noEmit --watch" ,
2325 "test" : " ava" ,
2426 "prepare" : " npm run build" ,
2527 "prepublishOnly" : " npm test"
You can’t perform that action at this time.
0 commit comments