File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ # This workflow will build a golang project
2+ # For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go
3+
4+ name : Go
5+
6+ on :
7+ push :
8+ branches : [ "master" ]
9+ pull_request :
10+ branches : [ "master" ]
11+
12+ jobs :
13+ test :
14+ runs-on : ubuntu-latest
15+ strategy :
16+ fail-fast : false
17+ matrix :
18+ go :
19+ - ' 1.20'
20+ - ' 1.19'
21+ steps :
22+ - uses : actions/checkout@v3
23+
24+ - name : Set up Go
25+ uses : actions/setup-go@v3
26+ with :
27+ go-version : ${{ matrix.go }}
28+
29+ - name : Build
30+ run : go build
31+
32+ - name : Test
33+ run : go test -v -coverprofile=profile.cov
34+
35+ - name : coveralls.io
36+ uses : shogo82148/actions-goveralls@v1
37+ with :
38+ path-to-profile : profile.cov
39+ flag-name : Go-${{ matrix.go }}
40+ parallel : true
41+
42+ finish :
43+ needs : test
44+ runs-on : ubuntu-latest
45+ steps :
46+ - uses : shogo82148/actions-goveralls@v1
47+ with :
48+ parallel-finished : true
49+
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments