Skip to content

Include Node.js 21 in supported engines and test matrix #89

Include Node.js 21 in supported engines and test matrix

Include Node.js 21 in supported engines and test matrix #89

Workflow file for this run

name: Install and test @ava/typescript
on:
push:
branches:
- main
pull_request:
paths-ignore:
- '*.md'
jobs:
nodejs:
name: Node.js
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
node-version: [^14.19, ^16.15, ^18, ^20, ^21]
os: [ubuntu-latest, windows-latest]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Install npm@8 for Node.js 14
if: matrix.node-version == '^14.19'
run: npm install --global npm@^8
- run: npm install --no-audit
- run: npm test
- uses: codecov/codecov-action@v2
with:
files: coverage/lcov.info
name: ${{ matrix.os }}/${{ matrix.node-version }}