Skip to content

Commit 8e7d9aa

Browse files
committed
ci: send test results to Codecov Test Analytics
The Codecov Test Analytics page for this repo has no data: go-check uploads coverage.out and nothing else, so there is no flaky-test detection, no per-test durations and no failure history. netresearch/.github#333 added enable-test-results to the shared workflow, which runs the unit tests through gotestsum and uploads the JUnit report. Turning it on here is the whole change. The template.yaml drift reason is updated to name the new input, and corrects the e2e count it records: 11 tests now, one of them browser-driven. Signed-off-by: Sebastian Mendel <github@sebastianmendel.de>
1 parent 659bb36 commit 8e7d9aa

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

.github/template.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@ template: go-app
55
intentional-drift:
66
- path: .github/workflows/ci.yml
77
reason: "enable-integration-tests: true and enable-e2e-tests: true \u2014 repo has\
8-
\ integration tests (12 files, -tags=integration) and e2e tests (10 tests under\
9-
\ ./e2e/..., -tags=e2e) that run in CI."
8+
\ integration tests (12 files, -tags=integration) and e2e tests (11 tests under\
9+
\ ./e2e/..., -tags=e2e, one of them browser-driven) that run in CI. Plus\
10+
\ enable-test-results: true, which routes the unit tests through gotestsum so\
11+
\ Codecov Test Analytics has data (netresearch/.github#333)."
1012
- path: .github/dependabot.yml
1113
reason: "Opt-in devcontainers ecosystem. The trimmed go-app template (netresearch/.github#166) declares only gomod/github-actions/docker; this repo has a .devcontainer so it self-manages dependabot.yml to keep devcontainers updates. Core blocks are kept in step with the template manually."

.github/workflows/ci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ jobs:
2222
enable-fuzz: true
2323
enable-license-check: true
2424
enable-codecov: true
25+
enable-test-results: true
2526
enable-integration-tests: true
2627
enable-e2e-tests: true
2728
e2e-test-packages: ./e2e/...

0 commit comments

Comments
 (0)