diff options
| author | Yuriy Andamasov <yuriy@vyos.io> | 2026-08-17 14:39:08 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-08-17 14:39:08 +0300 |
| commit | 204bf3cfaa1ffd4b117507265aa2bb548e042809 (patch) | |
| tree | b9a47b72a850e5f8798324fcdbf186d4e43f5cf4 | |
| parent | 8cb568bf6fbc2086516d6e5282cbb43668a32ae0 (diff) | |
| download | vyos-documentation-204bf3cfaa1ffd4b117507265aa2bb548e042809.tar.gz vyos-documentation-204bf3cfaa1ffd4b117507265aa2bb548e042809.zip | |
T9220: ci: upload JUnit test results to Codecov Test Analytics (#2212)
* 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)
| -rw-r--r-- | .github/workflows/apex-deploy.yml | 22 | ||||
| -rw-r--r-- | workers/.gitignore | 1 |
2 files changed, 22 insertions, 1 deletions
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/ |
