Skip to content

Commit

Permalink
Add node verisons 16, 18 and 20 (feross#331)
Browse files Browse the repository at this point in the history
  • Loading branch information
dcousens authored Oct 8, 2023
1 parent 795bbb5 commit be2ee0f
Showing 1 changed file with 31 additions and 18 deletions.
49 changes: 31 additions & 18 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,23 +1,36 @@
name: ci
'on':
- push
- pull_request
name: Tests

on:
push:
branches:
- main
pull_request:

jobs:
test:
name: Node ${{ matrix.node }} / ${{ matrix.os }}
runs-on: ${{ matrix.os }}
unit:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
node:
- '14'
# see https://nodejs.org/en/about/releases/
node-version: [16.x, 18.x, 20.x]

steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: ${{ runner.node }}
- run: npm install
- run: npm run build --if-present
- run: npm test
- uses: actions/checkout@main
- uses: actions/setup-node@main
with:
node-version: ${{ matrix.node-version }}
- run: npm install
- run: npm test

standard:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@main
- uses: actions/setup-node@main
with:
# don't use lts/* to prevent hitting rate-limit
node-version: 20.x
- run: npm install
- run: npm run standard

0 comments on commit be2ee0f

Please sign in to comment.