-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (36 loc) · 1.02 KB
/
github-ci.yaml
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
name: Go
on: [ push ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.11
- name: Build
run: go build ./...
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.11
- name: Test
run: |
go test -v ./...
go test -race -short ./...
go test -coverprofile=coverage.out ./...
- name: Convert coverage file
uses: jandelgado/[email protected]
with:
infile: coverage.out # optional, default filename is `coverage.out`
outfile: coverage.lcov # optional, default filename is `coverage.lcov`
- name: Publish to coveralls.io
uses: coverallsapp/[email protected]
with:
path-to-lcov: coverage.lcov
github-token: ${{ github.token }}