Skip to content

Extend API to allow string-checking, improve link-checking, and optimize performance #3

Extend API to allow string-checking, improve link-checking, and optimize performance

Extend API to allow string-checking, improve link-checking, and optimize performance #3

Workflow file for this run

name: "Tests"
on:
push:
branches: [main]
pull_request:
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
test:
strategy:
matrix:
platform: [ubuntu-latest, windows-latest]
node: ['lts/*', 'current']
name: "Node ${{ matrix.node }} (${{ matrix.platform }})"
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
with:
node-version: ${{ matrix.node }}
cache: npm
- name: "Install dependencies"
run: npm ci
- name: "Run tests"
run: npm test
test-macos:
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
strategy:
matrix:
node: ['lts/*', 'current']
name: "Node ${{ matrix.node }} (macOS)"
runs-on: macos-latest
steps:
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
with:
node-version: ${{ matrix.node }}
cache: npm
- name: "Install dependencies"
run: npm ci
- name: "Run tests"
run: npm test