Skip to content

Adds build-types to watch script #195

Adds build-types to watch script

Adds build-types to watch script #195

Workflow file for this run

name: Unit Test
on:
merge_group:
pull_request:
jobs:
unit-test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
node: [18, 20, 22]
include:
- node: 18
older_node_version: true
- node: 20
older_node_version: true
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 1
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
cache: 'npm'
- run: npm ci
- run: npm run build
- run: npm run test-older-node
if: ${{ (matrix.older_node_version) }}
- run: npm run test
if: ${{ !(matrix.older_node_version) }}