name: CI

on:
  push:
    branches:
      - master
  pull_request:

jobs:
  build:
    name: ${{ matrix.friendlyName }} ${{ matrix.arch }}
    runs-on: ${{ matrix.os }}
    strategy:
      fail-fast: false
      matrix:
        arch: [x64]
        os: [macos-10.15, windows-2019, ubuntu-18.04]
        include:
          - os: macos-10.15
            friendlyName: macOS
            arch: x64
          - os: macos-10.15
            friendlyName: macOS
            arch: arm64
          - os: windows-2019
            friendlyName: Windows
          - os: windows-2019
            friendlyName: Windows
            arch: x86
          - os: windows-2019
            friendlyName: Windows
            arch: arm64
          - os: ubuntu-18.04
            friendlyName: Linux
    timeout-minutes: 10
    steps:
      - uses: actions/checkout@v2
        with:
          submodules: recursive
      - name: Install Node.js ${{ matrix.arch }}
        uses: niik/setup-node@f9547c9
        with:
          node-version: 12
          node-arch: ${{ matrix.arch }}
      - name: Install and build dependencies
        run: npm ci
        env:
          npm_config_arch: ${{ matrix.arch }}
      - name: Build
        run: npm run build
      - name: Lint
        run: npm run is-it-pretty
      - name: Test
        run: npm run test
        env:
          TEST: 1

name: CI

on:
  push:
    branches:
      - master
  pull_request:

jobs:
  build:
    name: ${{ matrix.friendlyName }} ${{ matrix.arch }}
    runs-on: ${{ matrix.os }}
    strategy:
      fail-fast: false
      matrix:
        arch: [x64]
        os: [macos-10.15, windows-2019, ubuntu-18.04]
        include:
          - os: macos-10.15
            friendlyName: macOS
          - os: windows-2019
            friendlyName: Windows
          - os: windows-2019
            friendlyName: Windows
            arch: x86
          - os: ubuntu-18.04
            friendlyName: Linux
    timeout-minutes: 10
    steps:
      - uses: actions/checkout@v2
        with:
          submodules: recursive
      - name: Install Node.js ${{ matrix.arch }}
        uses: niik/setup-node@f9547c9
        with:
          node-version: 12
          node-arch: ${{ matrix.arch }}
      - name: Install and build dependencies
        run: npm ci
        env:
          npm_config_arch: ${{ matrix.arch }}
      - name: Build
        run: npm run build
      - name: Lint
        run: npm run is-it-pretty
      - name: Test
        run: npm run test
        env:
          TEST: 1

Revert "Add fake arm64 runners"
Revert "Add fake arm64 runners"

This reverts commit ad791d1a363c5d6a0f5b3723d70f6b3811428c4a.
