-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (35 loc) · 900 Bytes
/
go.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: Go
on:
push:
branches:
- '**'
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: ^1.16
# - name: golangci-lint
# uses: golangci/golangci-lint-action@v2
- name: goreadme
uses: posener/goreadme@v1.4.0
with:
recursive: true
badge-codecov: true
badge-godoc: true
badge-goreportcard: true
- name: Generate coverage report
run: |
go test `go list ./... | grep -v examples` -coverprofile=coverage.txt -covermode=atomic
- name: Upload coverage report
uses: codecov/codecov-action@v1.0.2
with:
file: ./coverage.txt
flags: unittests
name: codecov-umbrella
token: ${{ secrets.CODECOV_TOKEN }}