Skip to content

Commit beef476

Browse files
Add test coverage reporting to CI (#39)
- Update CI workflow to generate coverage profile with go test - Upload coverage data to Codecov for tracking - Add CI status and coverage badges to README Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
1 parent ef66374 commit beef476

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

.github/workflows/ci.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,15 @@ jobs:
2626
- name: Build
2727
run: go build -v ./...
2828

29-
- name: Test
30-
run: go test -race -v ./...
29+
- name: Test with coverage
30+
run: go test -race -coverprofile=coverage.out -covermode=atomic ./...
31+
32+
- name: Upload coverage to Codecov
33+
uses: codecov/codecov-action@v4
34+
with:
35+
files: ./coverage.out
36+
fail_ci_if_error: false
37+
verbose: true
3138

3239
lint:
3340
runs-on: ubuntu-latest

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# gitstreams
22

3+
[![CI](https://github.com/justinabrahms/gitstreams/actions/workflows/ci.yml/badge.svg)](https://github.com/justinabrahms/gitstreams/actions/workflows/ci.yml)
4+
[![codecov](https://codecov.io/gh/justinabrahms/gitstreams/graph/badge.svg)](https://codecov.io/gh/justinabrahms/gitstreams)
5+
36
Track what your GitHub social network has been up to. Get desktop notifications
47
and a rich HTML report showing repos starred, new projects, and activity from
58
developers you follow.

0 commit comments

Comments
 (0)