name: CI

on: [pull_request]

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      - uses: actions/setup-node@v2
        with:
          node-version: '16'

      - name: Install deps
        run: yarn install

      - name: Lint
        run: npm run lint

      - name: Type check
        run: npm run typecheck
