diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index d2678a5..774c4ad 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -11,6 +11,9 @@ jobs: matrix: ruby: ['3.2'] + env: + CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }} + steps: - name: Checkout the code uses: actions/checkout@v4 @@ -26,3 +29,9 @@ jobs: - name: Run tests run: bundle exec dotenv -f ".env.test" rspec + + - name: Send test coverage to CodeClimate + uses: paambaati/codeclimate-action@v5.0.0 + if: ${{ env.CC_TEST_REPORTER_ID }} + with: + coverageCommand: true diff --git a/README.md b/README.md index 27ab7a5..d3dddba 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,7 @@ [![Continuous integration](https://github.com/solectrus/senec/actions/workflows/push.yml/badge.svg)](https://github.com/solectrus/senec/actions/workflows/push.yml) [![wakatime](https://wakatime.com/badge/user/697af4f5-617a-446d-ba58-407e7f3e0243/project/84ac7dc2-9288-497c-bb20-9c6123d3de66.svg)](https://wakatime.com/badge/user/697af4f5-617a-446d-ba58-407e7f3e0243/project/84ac7dc2-9288-497c-bb20-9c6123d3de66) +[![Maintainability](https://api.codeclimate.com/v1/badges/7f87c569e806d4f19368/maintainability)](https://codeclimate.com/github/solectrus/senec/maintainability) +[![Test Coverage](https://api.codeclimate.com/v1/badges/7f87c569e806d4f19368/test_coverage)](https://codeclimate.com/github/solectrus/senec/test_coverage) # Unofficial Ruby Client for SENEC Home