Skip to content

Commit 9b41aa7

Browse files
authored
Merge pull request #7 from golang-io/dev
update: coverage badge
2 parents c44b2df + 2ca977b commit 9b41aa7

File tree

3 files changed

+15
-2
lines changed

3 files changed

+15
-2
lines changed

.github/workflows/go.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,21 @@ jobs:
1919
- name: Set up Go
2020
uses: actions/setup-go@v4
2121
with:
22-
go-version: '1.22'
22+
go-version: '1.22.1'
2323

2424
- name: Build
2525
run: go build -v ./...
2626

2727
- name: Test
2828
run: go test -v ./...
29+
30+
- name: Coverage
31+
run: go test -coverprofile=coverage.txt
32+
33+
34+
35+
36+
- name: Upload coverage reports to Codecov
37+
uses: codecov/codecov-action@v5
38+
with:
39+
token: ${{ secrets.CODECOV_TOKEN }}

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
<a href="https://github.com/golang-io/requests/actions/workflows/go.yml"><img src="https://github.com/golang-io/requests/actions/workflows/go.yml/badge.svg?branch=main" alt="Build status"></a>
77
<a href="https://goreportcard.com/report/github.com/golang-io/requests"><img src="https://goreportcard.com/badge/github.com/golang-io/requests" alt="go report"></a>
88
<a href="https://sourcegraph.com/github.com/golang-io/requests?badge"><img src="https://sourcegraph.com/github.com/golang-io/requests/-/badge.svg" alt="requests on Sourcegraph"></a>
9+
<a href="https://codecov.io/gh/golang-io/requests" > <img src="https://codecov.io/gh/golang-io/requests/graph/badge.svg?token=T8MZ92JL1T"/> </a>
10+
911
</div>
1012
<hr/>
1113

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
module github.com/golang-io/requests
22

3-
go 1.22
3+
go 1.22.1

0 commit comments

Comments
 (0)