-
Notifications
You must be signed in to change notification settings - Fork 55
43 lines (41 loc) · 1.13 KB
/
build.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: Build
on: [push]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
version: [1.13, 1.15, 1.16]
steps:
- uses: actions/checkout@v2
name: Checkout code
- uses: actions/checkout@v2
name: Checkout client specifications
with:
repository: Unleash/client-specification
ref: refs/tags/v4.3.1
path: testdata/client-specification
- uses: actions/setup-go@v2
name: Setup go
with:
go-version: ${{ matrix.version }}
- name: Get deps
run: go get -t -v ./...
- name: Go vet
run: go vet ./...
- name: Run all tests
run: go test -race -covermode atomic -coverprofile=profile.cov -v ./...
- name: Send coverage
uses: shogo82148/actions-goveralls@v1
with:
path-to-profile: profile.cov
flag-name: Go-${{ matrix.version }}
parallel: true
# notifies that all test jobs are finished.
finish:
needs: build
runs-on: ubuntu-latest
steps:
- uses: shogo82148/actions-goveralls@v1
with:
parallel-finished: true