name: Compiler Explorer on Windows

on: [ push ]

jobs:
  build-and-test:
    runs-on: windows-2019

    steps:
      - uses: actions/checkout@v2
        with:
          fetch-depth: 0
      - name: Use Node.js 14.x
        uses: actions/setup-node@v3
        with:
          node-version: 14.x
          cache: npm
      - name: Install prerequisites
        run: make prereqs
      - name: Build and test
        run: |
          npm run lint
          npm run ci-test
          npm run format-check
          npm run ts-check
