From 204bf3cfaa1ffd4b117507265aa2bb548e042809 Mon Sep 17 00:00:00 2001 From: Yuriy Andamasov Date: Mon, 17 Aug 2026 14:39:08 +0300 Subject: T9220: ci: upload JUnit test results to Codecov Test Analytics (#2212) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * T9220: ci: upload JUnit test results to Codecov Test Analytics Emit vitest JUnit XML (console reporter preserved via --reporter=default) and add a pinned codecov-action@v5.5.5 test-results upload step (tokenless, informational, continue-on-error). Test job semantics for the deploy gate are unchanged. Codecov Test Analytics fleet rollout, T1 batch. 🤖 Generated by [robots](https://vyos.io) * T9220: chore: ignore vitest JUnit output dir in workers Also satisfies the workflow's workers/** path filter so this PR's CI run exercises the new test-results upload (acceptance evidence). 🤖 Generated by [robots](https://vyos.io) * T9220: ci: compare head repo identity, not fork flag (review finding) 🤖 Generated by [robots](https://vyos.io) --- .github/workflows/apex-deploy.yml | 22 +++++++++++++++++++++- workers/.gitignore | 1 + 2 files changed, 22 insertions(+), 1 deletion(-) diff --git a/.github/workflows/apex-deploy.yml b/.github/workflows/apex-deploy.yml index 6459ac7a..d5258c23 100644 --- a/.github/workflows/apex-deploy.yml +++ b/.github/workflows/apex-deploy.yml @@ -27,7 +27,27 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-node@v4 with: { node-version: 22 } - - run: cd workers && npm ci && npx vitest run + - run: >- + cd workers && npm ci && npx vitest run + --reporter=default --reporter=junit + --outputFile=test-results/junit-apex-deploy-test-vitest-s0.xml + - name: Upload test results to Codecov + if: >- + ${{ !cancelled() && + (github.event_name != 'pull_request' || + github.event.pull_request.head.repo.full_name == github.repository) && + github.actor != 'dependabot[bot]' }} + uses: codecov/codecov-action@0fb7174895f61a3b6b78fc075e0cd60383518dac # v5.5.5 + timeout-minutes: 5 + continue-on-error: true + with: + report_type: test_results + files: workers/test-results/junit-apex-deploy-test-vitest-s0.xml + disable_search: true + fail_ci_if_error: false + flags: unit-vitest-s0 + name: unit-vitest-s0 + version: v11.3.1 deploy-canary: needs: test diff --git a/workers/.gitignore b/workers/.gitignore index ef5b8080..4b240bc1 100644 --- a/workers/.gitignore +++ b/workers/.gitignore @@ -1,3 +1,4 @@ node_modules/ .wrangler/ dist/ +test-results/ -- cgit v1.2.3