Skip to content

Add GitHub Actions workflow #1

Add GitHub Actions workflow

Add GitHub Actions workflow #1

Workflow file for this run

name: CI
on:
pull_request:
push:
permissions:
contents: read
jobs:
test:
runs-on: ${{matrix.os}}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
node-version: [0.10, 0.12, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21]
fail-fast: false
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up Node.js ${{matrix.node-version}}
uses: actions/setup-node@v3
with:
node-version: ${{matrix.node-version}}
- name: Install dependencies
run: npm install
- name: Build
run: node_modules/.bin/node-gyp rebuild --directory test
- name: Test
run: node_modules/.bin/tap --gc test/js/*-test.js; fi