-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (50 loc) · 1.18 KB
/
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
44
45
46
47
48
49
50
#
# on:
# push:
# branches:
# - master
# pull_request:
# branches:
# - master
#
# name: run tests
#
# jobs:
# test:
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v2
# with:
# fetch-depth: 2
#
# - uses: actions/setup-go@v2
# with:
# go-version: "^1.16.0"
#
# - name: golangci-lint
# uses: golangci/golangci-lint-action@v2
# with:
# version: latest
# args: -D errcheck -D deadcode -D varcheck --timeout 5m
# skip-pkg-cache: true
#
# coverage:
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v2
# with:
# fetch-depth: 2
#
# - uses: actions/setup-go@v2
# with:
# go-version: "^1.16.0"
#
# - name: Run coverage
# run: go test -race -covermode=atomic -coverprofile=profile.cov.tmp -coverpkg=./... ./... || exit 1
#
# - name: Filter files
# run: cat profile.cov.tmp | grep -v 'fake\|mock\|doc\|examples\|main\|interface\|scripts' > coverage.out
#
# - name: Upload coverage to Codecov
# run: bash <(curl -s https://codecov.io/bash)
#