Skip to content

Setting up examples

Setting up examples #1

Workflow file for this run

on:
pull_request: {}
jobs:
audit:
runs-on: ubuntu-latest
container: node:21.5.0-alpine3.19
steps:
- uses: actions/checkout@v4
- run: npm ci
- run: npm --workspaces audit --audit-level high
test-lts:
strategy:
matrix:
node-version: [18, 20, 22]
runs-on: [ubuntu-latest, windows-latest, macos-latest]
runs-on: ${{ matrix.runs-on }}
steps:
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- run: corepack enable
- uses: actions/checkout@v4
- run: npm ci
# node test runner seems to support globs since v21
- if: ${{ matrix.node-version >= 21 }}
run: npm --workspaces test