Skip to content

Commit

Permalink
README: Show badge for test coverage and code quality
Browse files Browse the repository at this point in the history
  • Loading branch information
ledermann committed Dec 11, 2023
1 parent e19cfad commit 86307ab
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -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

Expand Down

0 comments on commit 86307ab

Please sign in to comment.