Setup CodeClimate's quality reporting

This commit is contained in:
Wilson Silva 2023-01-06 12:41:31 +07:00
parent a24e2368cb
commit 766523bf4d
No known key found for this signature in database
GPG Key ID: 65135F94E23F82C8
3 changed files with 9 additions and 3 deletions

View File

@ -23,5 +23,9 @@ jobs:
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- name: Run the default task
run: bundle exec rake
- name: Test and report the code coverage
uses: paambaati/codeclimate-action@v3.2.0
env:
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
with:
coverageCommand: bundle exec rspec

View File

@ -1,6 +1,8 @@
# Nostr
[![Gem Version](https://badge.fury.io/rb/nostr.svg)](https://badge.fury.io/rb/nostr)
[![Maintainability](https://api.codeclimate.com/v1/badges/c7633eb2c89eb95ee7f2/maintainability)](https://codeclimate.com/github/wilsonsilva/nostr/maintainability)
[![Test Coverage](https://api.codeclimate.com/v1/badges/c7633eb2c89eb95ee7f2/test_coverage)](https://codeclimate.com/github/wilsonsilva/nostr/test_coverage)
[![Inline docs](http://inch-ci.org/github/wilsonsilva/nostr.svg?branch=main)](http://inch-ci.org/github/wilsonsilva/nostr)
Nostr client. Please note that the API is likely to change as the gem is still in development and has not yet reached a

View File

@ -44,7 +44,7 @@ Gem::Specification.new do |spec|
spec.add_development_dependency 'rubocop', '~> 1.42'
spec.add_development_dependency 'rubocop-rake', '~> 0.6'
spec.add_development_dependency 'rubocop-rspec', '2.16'
spec.add_development_dependency 'simplecov', '~> 0.22'
spec.add_development_dependency 'simplecov', '= 0.17'
spec.add_development_dependency 'simplecov-console', '~> 0.9'
spec.add_development_dependency 'yard', '~> 0.9'
spec.add_development_dependency 'yard-junk', '~> 0.0.9'