Skip to content

Commit 0709e41

Browse files
committed
feat(coverage): Coverage is now uploaded
1 parent 1b1a61f commit 0709e41

3 files changed

Lines changed: 13 additions & 0 deletions

File tree

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
vendor
22
.vscode
3+
.envrc
4+
coverage.txt

Makefile

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
coverage: ## Deploys coverage to codecov
2+
go test ./... -coverprofile=coverage.txt -covermode=atomic && \
3+
curl -s https://codecov.io/bash > deploy.sh && \
4+
chmod +x ./deploy.sh && \
5+
./deploy.sh && rm ./deploy.sh
6+
.PHONY: help
7+
help:
8+
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
9+
10+
.DEFAULT_GOAL := help

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
# <img src="./hotstreak.png"/>
33
[ ![Codeship Status for Roverr/hotstreak](https://app.codeship.com/projects/498c53d0-c99b-0136-5bad-7e8852079539/status?branch=master)](https://app.codeship.com/projects/314997)
44
[![Go Report Card](https://goreportcard.com/badge/github.com/Roverr/hotstreak)](https://goreportcard.com/report/github.com/Roverr/hotstreak)
5+
[![codecov](https://codecov.io/gh/Roverr/hotstreak/branch/master/graph/badge.svg)](https://codecov.io/gh/Roverr/hotstreak)
56

67

78
Hotstreak is lightweight library for creating a certain type of rate limiting solution.

0 commit comments

Comments
 (0)