Skip to content

Commit 0467a99

Browse files
authored
Enhance CI workflow with coverage reporting (#14)
Added coverage report generation and upload to Codecov.
1 parent 12a1c9a commit 0467a99

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

.github/workflows/ci.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,14 +33,19 @@ jobs:
3333
cache: true
3434

3535
- name: Verify root tests
36-
run: go test ./...
36+
run: go test ./... -coverprofile=coverage.txt
3737

3838
- name: Verify race detector
3939
run: go test -race ./...
4040

4141
- name: Verify go vet
4242
run: go vet ./...
4343

44+
- name: Upload coverage reports to Codecov
45+
uses: codecov/codecov-action@v5
46+
with:
47+
token: ${{ secrets.CODECOV_TOKEN }}
48+
4449
validation-playground:
4550
name: Validation submodule
4651
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)