Skip to content

Merge pull request #5 from lisb/feature/add-ci-workflow #2

Merge pull request #5 from lisb/feature/add-ci-workflow

Merge pull request #5 from lisb/feature/add-ci-workflow #2

Workflow file for this run

name: build and test
on:
push:
branches:
- master
pull_request:
branches:
- master
permissions:
contents: read
defaults:
run:
shell: bash
jobs:
test:
strategy:
matrix:
node:
- 18.x
- 20.x
- 22.x
os:
- ubuntu-latest
- windows-latest
- macos-latest
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
- name: Run tests
run: |
npm install
npm test