Add Github workflow

This commit is contained in:
Aria Minaei 2021-06-18 14:08:10 +02:00
parent 4a7303f40a
commit aa6d780355

26
.github/workflows/main.yml vendored Normal file
View file

@ -0,0 +1,26 @@
name: Node.js CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.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: yarn install
- run: yarn typecheck
- run: yarn lint:all
- run: yarn test