Skip to content

Commit 040d083

Browse files
committed
[build] Add coverage report generation
1 parent 4aa1aef commit 040d083

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.circleci/config.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ jobs:
2929
- attach_workspace:
3030
at: .
3131
- run: go get -v -t -d ./...
32-
- run: go test -v ./...
32+
- run: go test -v -covermode=count -coverprofile=count.out ./...
33+
- run: go tool cover -html=count.out -o coverage.html
3334
- run:
3435
working_directory: cmd/ssl-game-controller
3536
command: |
@@ -41,6 +42,9 @@ jobs:
4142
root: .
4243
paths:
4344
- release/*
45+
- store_artifacts:
46+
path: coverage.html
47+
destination: coverage
4448

4549
publish-github-release:
4650
docker:

0 commit comments

Comments
 (0)