test: convert from mocha/chai/c8 to vitest (#68) #199
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |