From 78e1093d5226f4be66c54d2449b3a6cd17c4fb9a Mon Sep 17 00:00:00 2001 From: Bartosz Date: Fri, 12 Jun 2026 01:20:13 +0200 Subject: [PATCH] Modernize the CI test matrix Run the test and react jobs in test.yml across a Node 20, 22 and 24 matrix instead of a single fixed Node version. --- .github/workflows/test.yml | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) 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