File tree 3 files changed +20
-0
lines changed
3 files changed +20
-0
lines changed Original file line number Diff line number Diff line change 44
44
45
45
- name : Run tests
46
46
run : make test
47
+
48
+ - name : Run tests, collect code coverage data and send to Coveralls
49
+ if : ${{ matrix.tarantool }} == '2.9'
50
+ env :
51
+ COVERALLS_TOKEN : ${{ secrets.GITHUB_TOKEN }}
52
+ run : |
53
+ go get golang.org/x/tools/cmd/cover
54
+ go get github.com/mattn/goveralls
55
+ make coveralls
Original file line number Diff line number Diff line change 1
1
SHELL := /bin/bash
2
+ COVERAGE_FILE := coverage.out
2
3
3
4
.PHONY : clean
4
5
clean :
@@ -12,3 +13,12 @@ deps: clean
12
13
test :
13
14
go clean -testcache
14
15
go test ./... -v -p 1
16
+
17
+ .PHONY : coverage
18
+ coverage :
19
+ go clean -testcache
20
+ go test ./... -v -p 1 -covermode=count -coverprofile=$(COVERAGE_FILE )
21
+
22
+ .PHONY : coveralls
23
+ coveralls : coverage
24
+ goveralls -coverprofile=$(COVERAGE_FILE ) -service=github
Original file line number Diff line number Diff line change 4
4
<!-- a href="https://travis-ci.org/tarantool/go-tarantool">
5
5
<img src="https://travis-ci.org/tarantool/go-tarantool.png?branch=master" align="right">
6
6
</a-->
7
+ [ ![ Coverage Status] ( https://coveralls.io/repos/github/tarantool/go-tarantool/badge.svg?branch=master )] ( https://coveralls.io/github/tarantool/go-tarantool?branch=master )
7
8
8
9
# Client in Go for Tarantool 1.6+
9
10
You can’t perform that action at this time.
0 commit comments