diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 660df82..3b93a8b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -43,15 +43,18 @@ jobs: - run: npm run typecheck test: - name: Unit Tests + name: Unit Tests (Node ${{ matrix.node-version }}) runs-on: ubuntu-latest + strategy: + matrix: + node-version: [20, 22] steps: - uses: actions/checkout@v5 - name: Setup Node.js uses: actions/setup-node@v5 with: - node-version: 22 + node-version: ${{ matrix.node-version }} cache: 'npm' - run: npm ci @@ -60,15 +63,18 @@ jobs: CI: true build: - name: Build + name: Build (Node ${{ matrix.node-version }}) runs-on: ubuntu-latest + strategy: + matrix: + node-version: [20, 22] steps: - uses: actions/checkout@v5 - name: Setup Node.js uses: actions/setup-node@v5 with: - node-version: 22 + node-version: ${{ matrix.node-version }} cache: 'npm' - run: npm ci