Skip to content

Commit 8ec1d1a

Browse files
authored
Create go.yml
1 parent 8a686a2 commit 8ec1d1a

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

.github/workflows/go.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Code coverage
2+
on: [push]
3+
jobs:
4+
5+
build:
6+
name: Build
7+
runs-on: ubuntu-latest
8+
steps:
9+
10+
- name: Set up Go
11+
uses: actions/setup-go@v1
12+
with:
13+
go-version: 1.13
14+
id: go
15+
16+
- uses: actions/checkout@v1
17+
18+
- name: Test
19+
run: go test -race -coverprofile=coverage.out -covermode=atomic
20+
21+
- name: codecov
22+
uses: codecov/codecov-action@v1.0.0
23+
with:
24+
token: ${{secrets.CODECOV_TOKEN}}
25+
file: ./coverage.out

0 commit comments

Comments
 (0)