add support for node 20 #75
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Node.js CI | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
build: | |
strategy: | |
matrix: | |
node: [16, 20] | |
os: [ubuntu-22.04] | |
include: | |
- node: 16 | |
os: macos-12 | |
- node: 20 | |
os: macos-12 | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Install node-gyp deps | |
run: | | |
if [ "${{ matrix.os }}" == "ubuntu-22.04" ]; then | |
sudo apt-get install -y autoconf make libtool automake | |
else | |
brew install autoconf automake libtool | |
fi | |
python --version | |
python -m pip install packaging setuptools | |
- uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- run: npm ci | |
- run: npm run build --if-present | |
- run: npm test |