Skip to content

Commit

Permalink
fix: fix CodeClimate broken coverage - #44
Browse files Browse the repository at this point in the history
  • Loading branch information
fabiocicerchia committed Dec 6, 2020
1 parent 35756a9 commit db35a26
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ jobs:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
with:
path: github.com/fabiocicerchia/go-proxy-cache

- name: Build
run: make build
Expand All @@ -34,7 +36,8 @@ jobs:
- name: Codecov
run: make codecov

- uses: paambaati/[email protected]
- name: CodeClimate
run: make codeclimate

sca:
runs-on: ubuntu-20.04
Expand Down
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -96,11 +96,11 @@ cover: ## coverage
go tool cover -html=c.out

codeclimate: ## codeclimate
go get -v github.com/codeclimate/test-reporter
cd $(GOPATH)/src/github.com/codeclimate/test-reporter && go install
test-reporter before-build
wget -O test-reporter https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 && chmod +x test-reporter
./test-reporter before-build
make cover
test-reporter after-build
./test-reporter format-coverage c.out -t gocov -p $(basename $$PWD)
./test-reporter after-build -t gocov -p $(basename $$PWD)

codecov: ## codecov
curl -s https://codecov.io/bash | bash
Expand Down

0 comments on commit db35a26

Please sign in to comment.