feat: update CLI workflow to use Node.js 20/24
Some checks failed
AITBC CLI Level 1 Commands Test / test-cli-level1 (20) (push) Failing after 3s
AITBC CLI Level 1 Commands Test / test-cli-level1 (24) (push) Failing after 3s
python-tests / test (push) Successful in 12s
python-tests / test-specific (push) Has been skipped
security-scanning / audit (push) Failing after 4s

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.
This commit is contained in:
2026-03-27 22:12:56 +01:00
parent a20c205716
commit e192aa02a3

View File

@@ -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