Skip to content

Merge pull request #26 from lisb/feature/improve-ci-workflow #31

Merge pull request #26 from lisb/feature/improve-ci-workflow

Merge pull request #26 from lisb/feature/improve-ci-workflow #31

Workflow file for this run

name: build and test
on:
push:
branches:
- master
paths-ignore:
- '**.md'
pull_request:
branches:
- master
paths-ignore:
- '**.md'
permissions:
contents: read
defaults:
run:
shell: bash
jobs:
test:
strategy:
matrix:
os:
- ubuntu-latest
- windows-latest
- macos-latest
node:
- 18.x
- 20.x
- 22.x
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 }}
cache: 'npm'
- run: |
npm ci
npm test