Skip to content

Commit

Permalink
ci: Re-introduce tests for Node.ja 14.18 and later
Browse files Browse the repository at this point in the history
  • Loading branch information
eemeli committed Jan 2, 2025
1 parent 8c0ae4e commit d193905
Showing 1 changed file with 35 additions and 5 deletions.
40 changes: 35 additions & 5 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Node.js
name: Legacy Node.js

on:
pull_request:
Expand All @@ -10,17 +10,14 @@ on:
jobs:
test:
runs-on: ${{ matrix.os }}

strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
node-version: [18, 20, latest]

steps:
- uses: actions/checkout@v4
with: { submodules: true }
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- run: npm ci
Expand All @@ -37,3 +34,36 @@ jobs:
with: { node-version: 20 }
- run: npm ci
- run: npm run lint

node-16:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: ['16.0', '16']
steps:
- uses: actions/checkout@v4
with: { submodules: true }
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- run: npm ci
- run: npm install --no-save rollup@3
- run: npm test
- run: npm run test:dist

node-14:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: ['14.18', '14']
steps:
- uses: actions/checkout@v4
with: { submodules: true }
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- run: npm install --global npm@7
- run: npm ci
- run: npm install --no-save rollup@3
- run: npm test
- run: npm run test:dist

0 comments on commit d193905

Please sign in to comment.