Commit 835ddf2
feat: re-enable code coverage with GitHub Actions native tooling (#132)
This PR addresses issue #48 by re-enabling code coverage reporting using
GitHub Actions and Go's native coverage tools, without requiring external
SaaS services like Codecov or Coveralls.
The blocking Go issue (golang/go#35781) causing "inconsistent NumStmt"
errors has been worked around in commit 7ad8c5d by removing the -race
flag from coverage runs.
Changes:
- Replace Codecov integration with GitHub Actions native coverage
- Extract and display coverage percentage in workflow summary
- Add optional badge generation using GitHub gist (no external services)
- Update documentation to reflect new coverage approach
- Coverage generation works successfully (83.8% overall coverage)
Benefits of this approach:
- No external SaaS dependencies or API tokens required
- Coverage data visible in GitHub Actions workflow summary
- Uses Go's built-in coverage tools
- Badge generation is optional (requires GIST_SECRET if desired)
- Follows modern best practices for Go projects in 2024-2025
Fixes #48
Co-authored-by: Claude <noreply@anthropic.com>1 parent b9a72ce commit 835ddf2
3 files changed
+35
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
60 | | - | |
61 | | - | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
62 | 71 | | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
67 | 86 | | |
68 | 87 | | |
69 | 88 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
71 | | - | |
| 71 | + | |
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
75 | 83 | | |
76 | 84 | | |
77 | 85 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
381 | 381 | | |
382 | 382 | | |
383 | 383 | | |
384 | | - | |
385 | | - | |
386 | | - | |
387 | 384 | | |
388 | 385 | | |
389 | 386 | | |
| |||
0 commit comments