ci: Use node.js 22 by default. Add initial support for node.js 24 (#16018)

This commit is contained in:
कारतोफ्फेलस्क्रिप्ट™
2025-06-04 17:49:31 +02:00
committed by GitHub
parent 3bdbdfe6ce
commit 52a9d4b3d9
28 changed files with 135 additions and 125 deletions

View File

@@ -18,11 +18,11 @@ jobs:
- uses: useblacksmith/setup-node@65c6ca86fdeb0ab3d85e78f57e4f6a7e4780b391 # v5
with:
node-version: 20.x
node-version: 22.x
- name: Setup corepack and pnpm
run: |
npm i -g corepack@0.31
npm i -g corepack@0.33
corepack enable
- name: Install dependencies
@@ -46,14 +46,14 @@ jobs:
needs: install-and-build
strategy:
matrix:
node-version: [20.x, 22.x]
node-version: [20.x, 22.x, 24.x]
with:
ref: ${{ inputs.branch }}
nodeVersion: ${{ matrix.node-version }}
cacheKey: ${{ github.sha }}-base:build
collectCoverage: ${{ matrix.node-version == '20.x' }}
ignoreTurboCache: ${{ matrix.node-version == '20.x' }}
skipFrontendTests: ${{ matrix.node-version != '20.x' }}
collectCoverage: ${{ matrix.node-version == '22.x' }}
ignoreTurboCache: ${{ matrix.node-version == '22.x' }}
skipFrontendTests: ${{ matrix.node-version != '22.x' }}
secrets:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}