Skip to content

ci: add node versions from 17 to 22 #31

ci: add node versions from 17 to 22

ci: add node versions from 17 to 22 #31

Workflow file for this run

name: CI
on:
- push
- pull_request
permissions:
contents: read
jobs:
test:
name: Node.js ${{ matrix.node-version }}
runs-on: ubuntu-latest
strategy:
matrix:
node-version:
- "16"
- "17"
- "18"
- "19"
- "20"
- "21"
- "22"
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- uses: actions/cache@v2
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- run: npm ci
- run: npm test
- uses: codecov/codecov-action@v1
with:
name: Node.js ${{ matrix.node-version }}