Skip to content

Commit e36775a

Browse files
authored
fix(ci): generate JUnit XML to silence codecov-action warnings (#300)
## Summary `getsentry/codecov-action@main` has `enable-tests: true` by default, searching for JUnit XML files matching `**/*.junit.xml`. Since the project produced no JUnit output, every CI run emitted 3 warnings about missing JUnit XML files. Bun's test runner natively supports JUnit XML via `bunfig.toml`, so enabling it is the cleanest fix — it also unlocks test result reporting (test counts, pass rate, test deltas vs base branch) in the codecov action for free. ## Changes - **`bunfig.toml`**: added `[test.reporter]` section with `junit = "test-results.junit.xml"` - **`.gitignore`**: added `*.junit.xml` under test artifacts so the generated file isn't accidentally committed No CI workflow changes needed — the codecov action's default glob `**/*.junit.xml` already matches the output path.
1 parent 0b8c9a8 commit e36775a

File tree

3 files changed

+74
-8
lines changed

3 files changed

+74
-8
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ coverage
1616

1717
# test artifacts
1818
.test-tmp
19+
*.junit.xml
1920

2021
# logs
2122
logs

0 commit comments

Comments
 (0)