Add github action.

pull/4/head
Atul Varma 2021-02-16 06:25:40 -05:00
rodzic 6dfa738548
commit 53f610dbd6
1 zmienionych plików z 26 dodań i 0 usunięć

26
.github/workflows/test.yml vendored 100644
Wyświetl plik

@ -0,0 +1,26 @@
name: Run tests
on:
push:
branches: [ $default-branch ]
pull_request:
branches: [ $default-branch ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [14.x]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: npm ci
- run: npm run typecheck
- run: npm test