Skip to content

Commit

Permalink
CI: run Node tests on all supported versions
Browse files Browse the repository at this point in the history
Switching back to ts-mocha/ts-node for the test-node script is required for it
to work with the different versions of Node (passing --import in NODE_OPTIONS
is not supported in older versions).
  • Loading branch information
larabr committed Jan 25, 2024
1 parent 20b280c commit 957bbdd
Show file tree
Hide file tree
Showing 3 changed files with 362 additions and 22 deletions.
10 changes: 9 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,20 @@ on:

jobs:
test-node:
name: Node integration tests
strategy:
fail-fast: false # if tests for one version fail, continue with the rest
matrix:
node-version: [16.x, 18.x, '20.x', 'lts']
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

name: Node integration tests (${{ matrix.node-version }})
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- run: npm ci
- run: npm run test-node

Expand Down
Loading

0 comments on commit 957bbdd

Please sign in to comment.