Skip to content

Commit feea1f9

Browse files
committed
run type checks in ci
1 parent fe40ae3 commit feea1f9

File tree

2 files changed

+36
-17
lines changed

2 files changed

+36
-17
lines changed

.github/workflows/ci.yml

+36
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

-17
This file was deleted.

0 commit comments

Comments
 (0)