Skip to content

Commit e74f1fc

Browse files
authored
Merge branch 'develop' into feature/allow_load_from_data
2 parents d71901e + f15877a commit e74f1fc

File tree

1 file changed

+53
-0
lines changed

1 file changed

+53
-0
lines changed

.github/workflows/go.yml

+53
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
name: Go
2+
3+
on:
4+
push:
5+
branches: [ develop ]
6+
pull_request:
7+
branches: [ develop ]
8+
9+
jobs:
10+
11+
test:
12+
name: Test
13+
strategy:
14+
matrix:
15+
go-version: [1.9.x, 1.10.x, 1.11.x, 1.12.x, 1.13.x, 1.14.x, 1.15.x]
16+
os: [ubuntu-latest]
17+
runs-on: ${{ matrix.os }}
18+
env:
19+
GOPATH: ${{ github.workspace }}
20+
GO111MODULE: auto
21+
defaults:
22+
run:
23+
working-directory: ${{ env.GOPATH }}/src/github.com/${{ github.repository }}
24+
steps:
25+
26+
- name: Set up Go 1.x
27+
uses: actions/setup-go@v2
28+
with:
29+
go-version: ${{ matrix.go-version }}
30+
31+
- name: Check out code
32+
uses: actions/checkout@v2
33+
with:
34+
path: src/github.com/${{ github.repository }}
35+
36+
- name: Get dependencies
37+
run: |
38+
go get github.com/mattn/goveralls
39+
if ! go get github.com/golang/tools/cmd/cover; then go get golang.org/x/tools/cmd/cover; fi
40+
go get -v ./...
41+
42+
- name: Test
43+
run: go test ./...
44+
45+
- name: Get Coverage Report
46+
run: |
47+
go test -c -covermode=count -coverpkg=github.com/cweill/gotests,github.com/cweill/gotests/internal/input,github.com/cweill/gotests/internal/render,github.com/cweill/gotests/internal/goparser,github.com/cweill/gotests/internal/output,github.com/cweill/gotests/internal/models
48+
./gotests.test -test.coverprofile coverage.cov
49+
50+
- name: Send Coverage Report
51+
run: $GOPATH/bin/goveralls -coverprofile=coverage.cov -service=github
52+
env:
53+
COVERALLS_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)