Skip to content

Commit

Permalink
chore: prevent CI from failing on coverage report (#76)
Browse files Browse the repository at this point in the history
  • Loading branch information
k3rn31 authored Jul 28, 2022
1 parent 9431015 commit d86f93f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ jobs:
env_vars: OS
- name: Report coverage to CodeClimate
uses: paambaati/codeclimate-action@v3.0.0
continue-on-error: true
env:
CC_TEST_REPORTER_ID: ${{secrets.CC_TEST_REPORTER_ID}}
with:
Expand All @@ -53,6 +54,7 @@ jobs:
${{github.workspace}}/coverage.out:gocov
- name: Report coverage to Codacy
uses: codacy/codacy-coverage-reporter-action@v1
continue-on-error: true
with:
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }}
coverage-reports: coverage.out
Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,13 @@ ${BIN}/${BINARY_NAME}:

.PHONY: test
test:
${GO_TEST} ./...
${GO_TEST} -race ./...

.PHONY: cover
cover: ${COVER_OUT}

${COVER_OUT}:
${GO_TEST} -cover -coverprofile ${COVER_OUT} ./...
${GO_TEST} -race -cover -coverprofile ${COVER_OUT} ./...

.PHONY: lint
lint:
Expand Down

0 comments on commit d86f93f

Please # to comment.