Skip to content

Initial commit

Initial commit #1

Workflow file for this run

name: test
on:
push:
branches: [main]
pull_request:
branches: [main]
workflow_dispatch:
jobs:
test:
name: ${{ matrix.os }} / Node ${{ matrix.node }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
node: ['22', '24']
os: [ubuntu-latest, macos-latest, windows-latest]
steps:
- uses: actions/checkout@v4
- name: Set up Node.js ${{ matrix.node }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
- name: Verify engines.node >= 22
run: node -e "const m=Number(process.versions.node.split('.')[0]); if(m<22){console.error('Node major',m,'< 22');process.exit(1)}"
- name: Syntax-check all scripts
shell: bash
run: |
for f in skills/houdiniswap/scripts/*.mjs scripts/*.mjs; do
node --check "$f"
done
- name: Run test suite
run: npm test