Skip to content

wip

wip #22

Workflow file for this run

name: CI - Test
on:
pull_request:
branches:
- v1 # Runs on PRs against the `v1` branch
push:
branches:
- v1 # Runs on pushes to `v1`, e.g., after merging PRs
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [14, 18, 23] # Test on Node.js versions 14, 18, and 23
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }} # Use the Node.js version from the matrix
- name: Install dependencies
run: |
npm install # Installs dependencies
- name: Build the library
run: npm run build # Runs your build script from package.json
- name: Run tests
run: npm test # Runs your test command (make sure your `package.json` includes a test script)