From db35a2675cbdd50c3ff30a6f224a4b1f019c1c8a Mon Sep 17 00:00:00 2001 From: Fabio Cicerchia Date: Sun, 6 Dec 2020 00:54:06 +0100 Subject: [PATCH] fix: fix CodeClimate broken coverage - #44 --- .github/workflows/main.yml | 5 ++++- Makefile | 8 ++++---- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index ffa001b4..98e5aa62 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -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 @@ -34,7 +36,8 @@ jobs: - name: Codecov run: make codecov - - uses: paambaati/codeclimate-action@v2.7.4 + - name: CodeClimate + run: make codeclimate sca: runs-on: ubuntu-20.04 diff --git a/Makefile b/Makefile index 3cc1ee63..2425f4cb 100644 --- a/Makefile +++ b/Makefile @@ -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