name: Build and Test
on: push

jobs:
  build:
    runs-on: ${{ matrix.os }}
    strategy:
      matrix:
        os: [ubuntu-16.04, ubuntu-18.04]
        node: [8, 10, 12]
    name: Build and test on ${{ matrix.os }} and node ${{ matrix.node }} 
    steps:
      - uses: actions/checkout@v2
      - name: Setup node
        uses: actions/setup-node@v1
        with:
          node-version: ${{ matrix.node }}
      - run: npm ci
      - name: Build
        run: npm run build:release


name: Build and Test
on: push

jobs:
  build:
    runs-on: ${{ matrix.os }}
    strategy:
      matrix:
        os: [ubuntu-18.04, macos-10.15, windows-2019]
        node: [8, 10, 12]
    name: ${{ matrix.os }} and node ${{ matrix.node }}
    steps:
      - uses: actions/checkout@v2
      - name: Setup node
        uses: actions/setup-node@v1
        with:
          node-version: ${{ matrix.node }}
      - run: npm ci
      - name: Build
        run: npm run build:release
      - name: Test
        if: ${{ runner.os == 'Linux' }}
        run: |
          # Allow writing Documentation/content/coverage/tests.md
          sudo chmod 777 Documentation/content/coverage
          # Allow writing Utilities/TestResults/TESTS-*.xml
          sudo chmod 777 Utilities/
          # To debug, run `./Utilities/ci/run-tests-in-docker.sh -d`
          ./Utilities/ci/run-tests-in-docker.sh

Add tests and build on mac and windows
chore(github): Add tests and build on mac and windows
