Skip to content

Add node.js v20 to test workflow #7

Add node.js v20 to test workflow

Add node.js v20 to test workflow #7

name: Test on Linux and macOS
on:
workflow_dispatch:
push:
branches: [main]
pull_request:
types: [opened, synchronize, reopened]
branches: [main]
jobs:
Test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macOS-latest]
node: [10, 12, 14, 16, 18, 20]
exclude:
- os: macOS-latest
node: 16
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
show-progress: false
- name: Install required node.js version
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
- name: Test package installation
run: sudo npm install