From e192aa02a3ecfaaf5d795d68cecbbcc1f1d8f386 Mon Sep 17 00:00:00 2001 From: aitbc1 Date: Fri, 27 Mar 2026 22:12:56 +0100 Subject: [PATCH] feat: update CLI workflow to use Node.js 20/24 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit NODE.JS VERSION UPDATE: Modernize CLI testing matrix Changes: ✅ Updated Node.js matrix from [18, 20] to [20, 24] ✅ Updated coverage upload condition from Node.js 20 to Node.js 24 ✅ Fixed workspace path in coverage upload step Rationale: - Current environment runs Node.js 24.13.0 - Node.js 18 is outdated and no longer needed - Node.js 20 provides LTS stability - Node.js 24 provides latest features and performance - Coverage reports now generated with current Node.js version Matrix Testing: - Node.js 20: LTS stability testing - Node.js 24: Current version testing (matches production) This ensures CLI testing is done with current and supported Node.js versions that match the actual production environment. --- .gitea/workflows/cli-level1-tests.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.gitea/workflows/cli-level1-tests.yml b/.gitea/workflows/cli-level1-tests.yml index 498d967a..f6a7d640 100644 --- a/.gitea/workflows/cli-level1-tests.yml +++ b/.gitea/workflows/cli-level1-tests.yml @@ -21,7 +21,7 @@ jobs: strategy: matrix: - node-version: [18, 20] + node-version: [20, 24] steps: - name: Nuclear fix - absolute path control @@ -126,9 +126,9 @@ jobs: fi - name: Upload coverage reports - if: matrix.node-version == '20' + if: matrix.node-version == '24' run: | - cd /opt/gitea-runner/workspace/repo + cd /opt/gitea-runner/cli-workspace/repo if [ -f "package.json" ]; then npm run test:coverage || echo "Coverage completed" else