Skip to content

Commit 5c87005

Browse files
authored
chore: add workflow for coverage (#346)
* chore: add workflow for coverage * fix: incorrect coverage file name * fix: try changing branch name on README.md for test * fix: broken test due to introducing race detector * fix: try changing branch name on README.md for test * fix: try changing branch name on README.md for test * fix: keep branch name as main finally
1 parent 501f4e7 commit 5c87005

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

.github/workflows/test.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,9 @@ jobs:
1515
run: go mod tidy
1616
- name: Run Test
1717
run: make test
18+
- name: Install goveralls and send coverage
19+
env:
20+
COVERALLS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
21+
run: |
22+
go get github.com/mattn/goveralls
23+
goveralls -coverprofile=coverage.out -service=github

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
![test workflow](https://github.com/odpf/meteor/actions/workflows/test.yml/badge.svg)
44
![build workflow](https://github.com/odpf/meteor/actions/workflows/build.yml/badge.svg)
55
[![Go Report Card](https://goreportcard.com/badge/github.com/odpf/meteor)](https://goreportcard.com/report/github.com/odpf/meteor)
6+
[![Coverage Status](https://coveralls.io/repos/github/odpf/meteor/badge.svg?branch=main)](https://coveralls.io/github/odpf/meteor?branch=main)
67
[![Version](https://img.shields.io/github/v/release/odpf/meteor?logo=semantic-release)](Version)
78
[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg?logo=apache)](LICENSE)
89

0 commit comments

Comments
 (0)