name: CI
on:
  push:
    branches:
    - main
  pull_request:
    branches:
    - main
jobs:
  test:
    runs-on: ubuntu-latest
    steps:
    - name: checkout
      uses: actions/checkout@main
    - name: use node 12
      uses: actions/setup-node@v2
      with:
        version: 12.x
    - run: npm ci
    - run: npm test
  lint:
    runs-on: ubuntu-latest
    steps:
    - name: checkout
      uses: actions/checkout@main
    - name: use node 12
      uses: actions/setup-node@v2
      with:
        version: 12.x
    - run: npm ci
    - run: npm run lint

name: CI
on:
  push:
    branches:
    - main
  pull_request:
    branches:
    - main
jobs:
  test:
    runs-on: ubuntu-latest
    steps:
    - name: checkout
      uses: actions/checkout@main
    - name: use node 16
      uses: actions/setup-node@v2
      with:
        version: 16.x
    - run: npm ci
    - run: npm test
  lint:
    runs-on: ubuntu-latest
    steps:
    - name: checkout
      uses: actions/checkout@main
    - name: use node 16
      uses: actions/setup-node@v2
      with:
        version: 16.x
    - run: npm ci
    - run: npm run lint

Update node version in CI to 16.
Update node version in CI to 16.
