diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index ad0538c..bacf34c 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -125,15 +125,15 @@ jobs: run: | make coverage-check - - name: Upload coverage to Codecov - uses: codecov/codecov-action@v3 - if: always() - continue-on-error: true + - name: Publish coverage report to Code Climate + if: ${{ startsWith(matrix.runs-on, 'ubuntu') }} + uses: paambaati/codeclimate-action@v5.0.0 + env: + CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }} with: - files: cover.out - os: ${{ matrix.goos }} - fail_ci_if_error: true - functionalities: fix + debug: true + coverageLocations: ./cover.out:gocov + prefix: github.com/open-cmsis-pack/cpackget test-linux-arm64: name: "linux | arm64" diff --git a/README.md b/README.md index f986387..390a4ac 100644 --- a/README.md +++ b/README.md @@ -4,6 +4,9 @@ [![Go Report Card](https://goreportcard.com/badge/github.com/open-cmsis-pack/cpackget)](https://goreportcard.com/report/github.com/open-cmsis-pack/cpackget) [![GoDoc](https://godoc.org/github.com/open-cmsis-pack/cpackget?status.svg)](https://godoc.org/github.com/open-cmsis-pack/cpackget) +[![Maintainability](https://api.codeclimate.com/v1/badges/eea6cb90a9a1e39bcff7/maintainability)](https://codeclimate.com/github/Open-CMSIS-Pack/cpackget/maintainability) +[![Test Coverage](https://api.codeclimate.com/v1/badges/eea6cb90a9a1e39bcff7/test_coverage)](https://codeclimate.com/github/Open-CMSIS-Pack/cpackget/test_coverage) + # cpackget: Open-CMSIS-Pack Package Installer This utility allows embedded developers to install (or uninstall) Open-CMSIS-Pack software packs to their local diff --git a/scripts/.codeclimate.yml b/scripts/.codeclimate.yml new file mode 100644 index 0000000..930f648 --- /dev/null +++ b/scripts/.codeclimate.yml @@ -0,0 +1,22 @@ +version: "2" +checks: + argument-count: + enabled: false + complex-logic: + enabled: false + identical-code: + enabled: true + file-lines: + enabled: false + method-complexity: + enabled: false + method-count: + enabled: false + method-lines: + enabled: false + nested-control-flow: + enabled: false + return-statements: + enabled: false + similar-code: + enabled: true