Skip to content

chore(ci): add windows to build matrix #106

chore(ci): add windows to build matrix

chore(ci): add windows to build matrix #106

Workflow file for this run

name: Node CI
on: [push, pull_request]
jobs:
test:
env:
FORCE_COLOR: '1'
name: Build & Test (Node ${{ matrix.node-version }}, ${{ matrix.os }})
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
node-version: ['20', '22', '24']
exclude:
- os: windows-latest
node-version: '20'
steps:
- name: Checkout Repository
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
- uses: ./.github/actions/prepare
with:
node-version: ${{ matrix.node-version }}
- name: Test (Node v20.x)
if: matrix.node-version == '20'
# CAUTION: this only works in POSIX environments
run: npm run test:node20
- name: Test
if: matrix.node-version != '20'
run: npm run test:runtime