Skip to content

Commit 9c77905

Browse files
committed
Add CI
1 parent fb85a1e commit 9c77905

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.github/workflows/test.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: build and test
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
test:
7+
runs-on: ubuntu-latest
8+
strategy:
9+
matrix:
10+
node-version: [16.x, 18.x]
11+
12+
steps:
13+
- uses: actions/checkout@v3
14+
- uses: actions/setup-node@v3
15+
with:
16+
node-version: ${{ matrix.node-version }}
17+
cache: 'yarn'
18+
- name: Install yarn dependencies
19+
run: yarn install --immutable
20+
- name: Build
21+
run: yarn build
22+
- name: Run tests
23+
run: yarn test
24+
- name: Typecheck
25+
run: yarn tsc
26+
# - name: Lint
27+
# run: yarn lint --max-warnings 0
28+
# - name: Check formatting
29+
# run: yarn fmt:check

0 commit comments

Comments
 (0)