name: Test & Lint
on: [ push, pull_request ]

jobs:
  testAndLint:
    runs-on: ubuntu-latest

    strategy:
      matrix:
        node:
          - '12'
          - '14'

    steps:
      - uses: actions/checkout@v2

      - uses: actions/setup-node@v2
        with:
          node-version: ${{ matrix.node }}

      - run: npm install
      - run: npm test
      - run: npm run lint

name: Test & Lint
on: [ push, pull_request ]

jobs:
  testAndLint:
    runs-on: ubuntu-latest

    strategy:
      matrix:
        node:
          - '12'
          - '14'
          - '16'

    steps:
      - uses: actions/checkout@v2

      - uses: actions/setup-node@v2
        with:
          node-version: ${{ matrix.node }}

      - run: npm install
      - run: npm test
      - run: npm run lint

Add Node.js 16 to the test matrix
Add Node.js 16 to the test matrix
