Skip to content

Commit cf95cc2

Browse files
committed
ci: add codecov integration
1 parent 8aee39e commit cf95cc2

File tree

3 files changed

+11
-2
lines changed

3 files changed

+11
-2
lines changed

.github/workflows/go.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,9 @@ jobs:
2525
run: go build -v ./...
2626

2727
- name: Test
28-
run: go test -v ./...
28+
run: go test -v ./... -coverprofile="coverage.txt"
29+
30+
- name: Upload coverage reports to Codecov
31+
uses: codecov/codecov-action@v5
32+
with:
33+
token: ${{ secrets.CODECOV_TOKEN }}

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
coverage.txt

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
11
<div align="center" markdown="1">
2-
gvcs - a Go version control system
2+
<h2>gvcs - a Go version control system</h2>
33
<a href="https://github.com/Notwinner0/gvcs/actions"><img src="https://github.com/Notwinner0/gvcs/actions/workflows/go.yml/badge.svg?branch=main" alt="Build Status"></a>
44
<a href="http://github.com/Notwinner0/gvcs/releases"><img src="https://img.shields.io/github/v/tag/Notwinner0/gvcs" alt="Version"></a>
55
<a href="https://github.com/Notwinner0/gvcs?tab=MIT-1-ov-file#readme"><img src="https://img.shields.io/github/license/Notwinner0/gvcs" alt="License"></a>
66
<a href="https://github.com/Notwinner0/gvcs/graphs/contributors"><img src="https://img.shields.io/github/contributors/Notwinner0/gvcs" alt="Contributors"></a>
77
<a href="https://github.com/Notwinner0/gvcs/stargazers"><img src="https://img.shields.io/github/stars/Notwinner0/gvcs?style=flat" alt="Stars"></a>
8+
<a href="https://codecov.io/github/Notwinner0/gvcs" >
9+
<img src="https://codecov.io/github/Notwinner0/gvcs/graph/badge.svg?token=QZOTUY8TW9"/>
10+
</a>
811
</div>
912

1013
---

0 commit comments

Comments
 (0)