File tree Expand file tree Collapse file tree 3 files changed +15
-2
lines changed Expand file tree Collapse file tree 3 files changed +15
-2
lines changed Original file line number Diff line number Diff line change @@ -19,10 +19,21 @@ jobs:
19
19
- name : Set up Go
20
20
uses : actions/setup-go@v4
21
21
with :
22
- go-version : ' 1.22'
22
+ go-version : ' 1.22.1 '
23
23
24
24
- name : Build
25
25
run : go build -v ./...
26
26
27
27
- name : Test
28
28
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 }}
Original file line number Diff line number Diff line change 6
6
<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>
7
7
<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>
8
8
<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
+
9
11
</div >
10
12
<hr />
11
13
Original file line number Diff line number Diff line change 1
1
module github.com/golang-io/requests
2
2
3
- go 1.22
3
+ go 1.22.1
You can’t perform that action at this time.
0 commit comments