Skip to content

Commit d33f106

Browse files
chore: add support for coverage (#2221)
Co-authored-by: Rémy Léone <[email protected]>
1 parent 77a13a3 commit d33f106

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

.github/workflows/coverage.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Test and coverage
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v2
10+
with:
11+
fetch-depth: 2
12+
- uses: actions/setup-go@v2
13+
with:
14+
go-version: '1.18'
15+
- name: Run coverage
16+
run: go test -coverprofile=coverage.out -covermode=count ./...
17+
- name: Upload coverage to Codecov
18+
uses: codecov/codecov-action@v2

0 commit comments

Comments
 (0)