Skip to content

Commit 5516102

Browse files
authored
chore: check types in ci (#437)
1 parent b120c4d commit 5516102

File tree

3 files changed

+38
-17
lines changed

3 files changed

+38
-17
lines changed

.github/workflows/ci.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
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

.github/workflows/main.yml

Lines changed: 0 additions & 17 deletions
This file was deleted.

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@
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"

0 commit comments

Comments
 (0)