Skip to content

Commit 0d2f9ad

Browse files
committed
Add coverage
1 parent cff0ab7 commit 0d2f9ad

1 file changed

Lines changed: 17 additions & 10 deletions

File tree

.github/workflows/go.yml

Lines changed: 17 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,21 +5,28 @@ name: Go
55

66
on:
77
push:
8-
branches: [ "main" ]
8+
branches: ["main"]
99
pull_request:
10-
branches: [ "main" ]
10+
branches: ["main"]
1111

1212
jobs:
13-
1413
build:
1514
runs-on: ubuntu-latest
1615
steps:
17-
- uses: actions/checkout@v3
16+
- uses: actions/checkout@v3
17+
18+
- name: Set up Go
19+
uses: actions/setup-go@v4
20+
with:
21+
go-version: "1.20"
1822

19-
- name: Set up Go
20-
uses: actions/setup-go@v4
21-
with:
22-
go-version: '1.20'
23+
- name: Test
24+
run: go test -v ./...
2325

24-
- name: Test
25-
run: go test -cover -v ./...
26+
coverage:
27+
runs-on: ubuntu-latest
28+
steps:
29+
- name: Upload coverage reports to Codecov
30+
uses: codecov/codecov-action@v3
31+
env:
32+
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

0 commit comments

Comments
 (0)