name: CI

on:
  pull_request:
  push:
  schedule:
    - cron: '30 12 * * *'
  workflow_dispatch:

jobs:
  build:

    runs-on: ${{ matrix.os }}

    strategy:
      fail-fast: false
      matrix:
        os: [macos-latest, ubuntu-latest, windows-latest]
        node-version: [10.x, 12.x, 14.x, 15.x]

    steps:
    - uses: actions/checkout@v2
    - name: Use Node.js ${{ matrix.node-version }}
      uses: actions/setup-node@v1
      with:
        node-version: ${{ matrix.node-version }}
    - name: Install Dependencies
      run: npm install --no-package-lock
    - name: Run All Validations
      if: ${{ matrix.node-version != '10.x' && matrix.node-version != '12.x' }}
      run: npm run ci
    - name: Run Tests Only
      if: ${{ matrix.node-version == '10.x' || matrix.node-version == '12.x' }}
      run: npm run test

name: CI

on:
  pull_request:
  push:
  schedule:
    - cron: '30 12 * * *'
  workflow_dispatch:

jobs:
  build:

    runs-on: ${{ matrix.os }}

    strategy:
      fail-fast: false
      matrix:
        os: [macos-latest, ubuntu-latest, windows-latest]
        node-version: [10.x, 12.x, 14.x, 16.x]

    steps:
    - uses: actions/checkout@v2
    - name: Use Node.js ${{ matrix.node-version }}
      uses: actions/setup-node@v1
      with:
        node-version: ${{ matrix.node-version }}
    - name: Install Dependencies
      run: npm install --no-package-lock
    - name: Run All Validations
      if: ${{ matrix.node-version != '10.x' && matrix.node-version != '12.x' }}
      run: npm run ci
    - name: Run Tests Only
      if: ${{ matrix.node-version == '10.x' || matrix.node-version == '12.x' }}
      run: npm run test

Replace Node 15 with 16 in CI tests. (
Replace Node 15 with 16 in CI tests. (

