Skip to content

test: convert from mocha/chai/c8 to vitest (#68) #199

test: convert from mocha/chai/c8 to vitest (#68)

test: convert from mocha/chai/c8 to vitest (#68) #199

Workflow file for this run

name: CI Test Suite
on:
push:
# Only run on pushes to main branches and long-lived feature branches
# PRs will trigger via pull_request event to avoid duplicate runs
branches:
- main
pull_request:
workflow_dispatch:
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
node_version: ["22.x", "24.x"]
os: [ubuntu-latest, macos-latest, windows-latest]
fail-fast: false
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node_version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node_version }}
cache: npm
- name: Install dependencies
run: npm ci
- name: Unit tests and lint
run: npm test