Ryan Zimmerman 22583f7bbe
Test on more modern Node versions (#1051)
* Test on more modern Node versions

* Fix tests and note that deprecated constants are not exported

Since https://github.com/nodejs/node/pull/49686, they are not
enumerable properties, so Object.assign doesn't re-export them.
Attempting to directly export them would trigger the deprecation
warning.
2025-08-04 10:55:19 -04:00

25 lines
527 B
YAML

name: Node.js CI
on:
push:
branches: master
pull_request:
permissions:
contents: read # to fetch code (actions/checkout)
jobs:
test:
strategy:
matrix:
node: [14.x, 16.x, 18.x, 20.x, 22.x, 24.x]
os: [ubuntu-latest, macos-13, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
- run: npm install
- run: npm test