name: Tests and checks on push

on:
  push:
    branches:
      - rewrite

jobs:
  run-checks-and-tests:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout
        uses: actions/checkout@v2
      - name: Install deps
        run: npm install
      - name: Prettier
        run: npm run prettier:check
      - name: Lint TS
        run: npm run lint:ts
      - name: Stylelint
        run: npm run lint:styles
      - name: Unit tests
        run: npm run test:unit
      - name: Typecheck
        run: npm run typecheck
