name: Test

on:
  - push
  - pull_request

jobs:
  node:
    runs-on: ubuntu-latest
    strategy:
      matrix:
        node-version:
          - 12
          - 14
    steps:
      - name: Check out GitHub repository
        uses: actions/checkout@v2
      - name: Set up Node.js
        uses: actions/setup-node@v2
        with:
          node-version: ${{ matrix.node-version }}
      - name: Install dependencies
        run: npm install
      - name: Run tests
        run: npm test

name: Test

on:
  - push
  - pull_request

jobs:
  node:
    runs-on: ubuntu-latest
    strategy:
      matrix:
        node-version:
          - 12
          - 14
          - 16
    steps:
      - name: Check out GitHub repository
        uses: actions/checkout@v2
      - name: Set up Node.js
        uses: actions/setup-node@v2
        with:
          node-version: ${{ matrix.node-version }}
      - name: Install dependencies
        run: npm install
      - name: Run tests
        run: npm test

Configure GitHub Actions for Node.js 16
Configure GitHub Actions for Node.js 16
