File tree Expand file tree Collapse file tree 2 files changed +44
-18
lines changed Expand file tree Collapse file tree 2 files changed +44
-18
lines changed Original file line number Diff line number Diff line change 1+ on :
2+ push :
3+ pull_request :
4+ types : [synchronize]
5+ schedule :
6+ - cron : " 0 0 1,11,21 * *"
7+ name : Test
8+ jobs :
9+ test :
10+ strategy :
11+ fail-fast : false
12+ matrix :
13+ go-version :
14+ - 1.13.x
15+ - 1.14.x
16+ - 1.15.x
17+ - 1.16.x
18+ os : [ubuntu-latest, macos-latest, windows-latest]
19+ runs-on : ${{ matrix.os }}
20+ steps :
21+ - name : Install Go
22+ uses : actions/setup-go@v2
23+ with :
24+ go-version : ${{ matrix.go-version }}
25+ - name : Checkout code
26+ uses : actions/checkout@v2
27+ - name : Test
28+ run : go test ./...
29+ - name : Test coverage
30+ run : go test -coverprofile="cover.out" ./... # quotes needed for powershell
31+ - name : Send coverage
32+ uses : shogo82148/actions-goveralls@v1
33+ with :
34+ path-to-profile : cover.out
35+ flag-name : go${{ matrix.go-version }}-${{ matrix.os }}
36+ parallel : true
37+ # notifies that all test jobs are finished.
38+ finish :
39+ needs : test
40+ runs-on : ubuntu-latest
41+ steps :
42+ - uses : shogo82148/actions-goveralls@v1
43+ with :
44+ parallel-finished : true
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments