File tree Expand file tree Collapse file tree 3 files changed +66
-0
lines changed
Expand file tree Collapse file tree 3 files changed +66
-0
lines changed Original file line number Diff line number Diff line change 1+ # These are supported funding model platforms
2+
3+ github : qmuntal
Original file line number Diff line number Diff line change 1+ name : CI
2+ on :
3+ push :
4+ branches :
5+ - master
6+ jobs :
7+ build :
8+ runs-on : ubuntu-latest
9+ steps :
10+ - uses : actions/checkout@v2
11+ with :
12+ fetch-depth : ' 0'
13+ - name : Test
14+ run : go test -race ./...
15+ - name : Bump version and push tag
16+ uses : anothrNick/github-tag-action@1.22.0
17+ id : bump_tag
18+ env :
19+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
20+ WITH_V : true
21+ DEFAULT_BUMP : patch
22+ - name : Create Release
23+ id : create_release
24+ uses : actions/create-release@v1
25+ env :
26+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
27+ with :
28+ tag_name : ${{ steps.bump_tag.outputs.new_tag }}
29+ release_name : ${{ steps.bump_tag.outputs.new_tag }}
30+ draft : true
31+ prerelease : false
Original file line number Diff line number Diff line change 1+ on : [push, pull_request]
2+ name : Test
3+ jobs :
4+ test :
5+ strategy :
6+ matrix :
7+ go-version : [1.14.x, 1.15.x]
8+ platform : [ubuntu-latest, macos-latest, windows-latest]
9+ runs-on : ${{ matrix.platform }}
10+ steps :
11+ - name : Install Go
12+ uses : actions/setup-go@v2
13+ with :
14+ go-version : ${{ matrix.go-version }}
15+ - name : Checkout code
16+ uses : actions/checkout@v2
17+ - name : Test
18+ run : go test -race -covermode atomic -coverprofile profile.cov ./...
19+ - name : Send coverage
20+ uses : shogo82148/actions-goveralls@v1
21+ with :
22+ path-to-profile : profile.cov
23+ flag-name : Go-${{ matrix.go-version }}
24+ parallel : true
25+ finish :
26+ needs : test
27+ runs-on : ubuntu-latest
28+ steps :
29+ - uses : shogo82148/actions-goveralls@v1
30+ with :
31+ parallel-finished : true
32+
You can’t perform that action at this time.
0 commit comments