-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (39 loc) · 986 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
44
45
46
47
name: Go
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
test:
name: Build
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
go: ['1.13', '1.14']
steps:
- uses: actions/setup-go@v1
with:
go-version: ${{ matrix.go }}
- uses: actions/checkout@v2
- name: Build
run: go build -v .
- name: Test
env:
IMGURCLIENTID: ${{ secrets. IMGURCLIENTID }}
RapidAPIKEY: ${{ secrets. RapidAPIKEY }}
run: go test -v -coverprofile=profile.cov ./...
- name: Send Coverage
uses: shogo82148/actions-goveralls@v1
with:
path-to-profile: profile.cov
parallel: true
# notifies that all test jobs are finished.
finish:
needs: test
runs-on: ubuntu-latest
steps:
- uses: shogo82148/actions-goveralls@v1
with:
parallel-finished: true