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