fix(ci): standardize CI on node 22 (#4302)

# What does this PR do?
CI was previously using both node 20 and 22
standardize on node 22

Closes #4294

Signed-off-by: Nathan Weinberg <nweinber@redhat.com>
This commit is contained in:
Nathan Weinberg 2025-12-03 19:10:40 -05:00 committed by GitHub
parent c57c2ae562
commit 2bdcbe7963
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 6 additions and 2 deletions

View file

@ -74,6 +74,7 @@ jobs:
client: [library, docker, server] client: [library, docker, server]
# Use Python 3.13 only on nightly schedule (daily latest client test), otherwise use 3.12 # Use Python 3.13 only on nightly schedule (daily latest client test), otherwise use 3.12
python-version: ${{ github.event.schedule == '0 0 * * *' && fromJSON('["3.12", "3.13"]') || fromJSON('["3.12"]') }} python-version: ${{ github.event.schedule == '0 0 * * *' && fromJSON('["3.12", "3.13"]') || fromJSON('["3.12"]') }}
node-version: [22]
client-version: ${{ (github.event.schedule == '0 0 * * *' || github.event.inputs.test-all-client-versions == 'true') && fromJSON('["published", "latest"]') || fromJSON('["latest"]') }} client-version: ${{ (github.event.schedule == '0 0 * * *' || github.event.inputs.test-all-client-versions == 'true') && fromJSON('["published", "latest"]') || fromJSON('["latest"]') }}
# Test configurations: Generated from CI_MATRIX in tests/integration/suites.py # Test configurations: Generated from CI_MATRIX in tests/integration/suites.py
# See scripts/generate_ci_matrix.py for generation logic # See scripts/generate_ci_matrix.py for generation logic
@ -97,7 +98,7 @@ jobs:
if: ${{ matrix.client == 'server' }} if: ${{ matrix.client == 'server' }}
uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.0 uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.0
with: with:
node-version: '20' node-version: ${{matrix.node-version}}
cache: 'npm' cache: 'npm'
cache-dependency-path: tests/integration/client-typescript/package-lock.json cache-dependency-path: tests/integration/client-typescript/package-lock.json

View file

@ -16,6 +16,9 @@ concurrency:
jobs: jobs:
pre-commit: pre-commit:
runs-on: ubuntu-latest runs-on: ubuntu-latest
strategy:
matrix:
node-version: [22]
permissions: permissions:
contents: write contents: write
pull-requests: write pull-requests: write
@ -41,7 +44,7 @@ jobs:
- name: Set up Node.js - name: Set up Node.js
uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.0 uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.0
with: with:
node-version: '20' node-version: ${{matrix.node-version}}
cache: 'npm' cache: 'npm'
cache-dependency-path: 'src/llama_stack_ui/' cache-dependency-path: 'src/llama_stack_ui/'