Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,9 @@ jobs:
run: go mod tidy
- name: Run Test
run: make test
- name: Install goveralls and send coverage
env:
COVERALLS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
go get github.com/mattn/goveralls
goveralls -coverprofile=coverage.txt -service=github
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ clean:
rm -rf columbus dist/

test:
go test ./... -coverprofile=coverage.out
go test -race ./... -coverprofile=coverage.txt

test-coverage: test
go tool cover -html=coverage.out
go tool cover -html=coverage.txt -o cover.html

dist:
@bash ./scripts/build.sh
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
# Columbus

![test workflow](https://github.com/odpf/columbus/actions/workflows/test.yml/badge.svg)
![build workflow](https://github.com/odpf/columbus/actions/workflows/build.yml/badge.svg)
![build workflow](https://github.com/odpf/columbus/actions/workflows/build_dev.yml/badge.svg)
[![Coverage Status](https://coveralls.io/repos/github/odpf/columbus/badge.svg?branch=main)](https://coveralls.io/github/odpf/columbus?branch=main)
[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg?logo=apache)](LICENSE)
[![Version](https://img.shields.io/github/v/release/odpf/columbus?logo=semantic-release)](Version)

Expand Down