Skip to content

Commit

Permalink
Merge pull request #338 from wakatime/feature/coveralls
Browse files Browse the repository at this point in the history
Add coverage report
  • Loading branch information
gandarez authored May 7, 2021
2 parents 518f176 + 6c3fdcd commit e02113a
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/on_push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,11 @@ jobs:
-
name: "Linter"
run: make lint
-
name: "Send coverage"
uses: shogo82148/actions-goveralls@v1
with:
path-to-profile: coverage.out

test-windows:
name: Test Windows
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/on_push_protected_branches.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,11 @@ jobs:
-
name: "Linter"
run: make lint
-
name: "Send coverage"
uses: shogo82148/actions-goveralls@v1
with:
path-to-profile: coverage.out

test-windows:
name: Test Windows
Expand All @@ -51,7 +56,7 @@ jobs:
-
name: "Linter"
run: make lint

release:
name: Release
runs-on: ubuntu-latest
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -125,4 +125,4 @@ lint: install-linter

.PHONY: test
test:
go test -cover -race ./...
go test -race -covermode=atomic -coverprofile=coverage.out ./...
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# WakaTime CLI

![Tests master](https://img.shields.io/github/workflow/status/wakatime/wakatime-cli/Create%20Release/master?label=%20tests) ![Build master](https://img.shields.io/github/workflow/status/wakatime/wakatime-cli/Build%20and%20upload%20release%20assets) [![Coverage Status](https://coveralls.io/repos/github/wakatime/wakatime-cli/badge.svg?branch=master)](https://coveralls.io/github/wakatime/wakatime-cli?branch=master)

Command line interface to [WakaTime](https://wakatime.com) used by all WakaTime [text editor plugins](https://wakatime.com/editors).

Go to <http://wakatime.com/editors> to install the plugin for your text editor or IDE.
Expand Down

0 comments on commit e02113a

Please sign in to comment.