name: TSC
on: [push, pull_request]
jobs:
  tsc:
    name: TSC
    runs-on: ubuntu-latest
    steps:
      - name: Checkout repository
        uses: actions/checkout@v2

      - name: Install Node v12
        uses: actions/setup-node@v1
        with:
          node-version: 12

      - name: Install pnpm
        run: curl -L https://unpkg.com/@pnpm/self-installer | node

      - name: Install dependencies
        run: pnpm i

      - name: Run TSC
        uses: icrawl/action-tsc@v1