name: Lint

on: pull_request

jobs:
  lint:
    runs-on: ubuntu-latest

    steps:
      - uses: actions/checkout@v1

      - name: Setup Node.js 14.x
        uses: actions/setup-node@v1
        with:
          node-version: 14.x

      - name: Install and lint
        run: |
          yarn --frozen-lockfile
          yarn test:other
          yarn test:code
          yarn test:typecheck