From 90bd1927e2aa5894364f2fb0899ab54ad6bc6418 Mon Sep 17 00:00:00 2001 From: = Date: Thu, 18 Sep 2025 17:50:55 -0700 Subject: [PATCH] Update config.yml --- .circleci/config.yml | 32 ++++++++++++-------------------- 1 file changed, 12 insertions(+), 20 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index a3c6e05cea..f4aa9955f1 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -2882,30 +2882,22 @@ jobs: - run: name: Run UI unit tests (Vitest) command: | - # Use the same Node version we installed earlier with nvm + # Use Node 20 (several deps require >=20) export NVM_DIR="/opt/circleci/.nvm" source "$NVM_DIR/nvm.sh" - nvm use v18.17.0 - + nvm install 20 + nvm use 20 + cd ui/litellm-dashboard - # Ensure clean, deterministic install (skip if you prefer npm install) npm ci || npm install - - # Run Vitest via your package.json script: - # - --run to avoid watch mode on CI - # - --coverage to produce coverage - # - --coverage.reporter=lcov so Codecov can ingest lcov.info - # - Feel free to drop --reporter if you don’t need extra output - npm run test -- --run --coverage --coverage.reporter=lcov - - # If you use a JUnit reporter (e.g., vitest-junit-reporter), - # ensure it writes to ./test-results/junit.xml so Circle collects it - mkdir -p test-results || true - - store_test_results: - path: ui/litellm-dashboard/test-results - - store_artifacts: - path: ui/litellm-dashboard/coverage - destination: ui-coverage + + # CI run, with both LCOV (Codecov) and HTML (artifact you can click) + CI=true npm run test -- --run --coverage \ + --coverage.provider=v8 \ + --coverage.reporter=lcov \ + --coverage.reporter=html \ + --coverage.reportsDirectory=coverage/html + - run: name: Build Docker image