diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 3328399..7dfec8a 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -8,24 +8,32 @@ on: jobs: test: runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + node-version: [20, 22, 24] steps: - uses: actions/checkout@v5 - - name: Use Node.js + - name: Use Node.js ${{ matrix.node-version }} uses: actions/setup-node@v5 with: - node-version: latest + node-version: ${{ matrix.node-version }} cache: npm - run: npm ci - run: npm test react: runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + node-version: [20, 22, 24] steps: - uses: actions/checkout@v5 - - name: Use Node.js + - name: Use Node.js ${{ matrix.node-version }} uses: actions/setup-node@v5 with: - node-version: latest + node-version: ${{ matrix.node-version }} cache: npm cache-dependency-path: react/package-lock.json - run: npm ci