Skip to content

Add CodeClimate badge & GitHub Action ☔️ #53

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .github/workflows/ruby.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,10 @@ jobs:
bundle exec rake
bundle exec rubocop
bundle exec fasterer
- name: Test & publish code coverage
uses: paambaati/[email protected]
env:
CC_TEST_REPORTER_ID: ${{secrets.CC_TEST_REPORTER_ID}}
with:
coverageCommand: bundle exec rake
debug: true
1 change: 1 addition & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ ruby '~> 2.7'

group :development, :test do
gem 'byebug', '~> 11.1'
gem 'codecov', '~> 0.2', require: false
gem 'fasterer', '~> 0.8', require: false
gem 'rake', '~> 13.0'
gem 'rspec', '~> 3.9'
Expand Down
11 changes: 11 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,17 @@ GEM
specs:
ast (2.4.1)
byebug (11.1.3)
codecov (0.2.2)
colorize
json
simplecov
colorize (0.8.1)
diff-lcs (1.4.4)
docile (1.3.2)
fasterer (0.8.3)
colorize (~> 0.7)
ruby_parser (>= 3.14.1)
json (2.3.1)
parallel (1.19.2)
parser (2.7.1.4)
ast (~> 2.4.1)
Expand Down Expand Up @@ -43,13 +49,18 @@ GEM
ruby_parser (3.14.2)
sexp_processor (~> 4.9)
sexp_processor (4.15.0)
simplecov (0.18.5)
docile (~> 1.1)
simplecov-html (~> 0.11)
simplecov-html (0.12.2)
unicode-display_width (1.7.0)

PLATFORMS
ruby

DEPENDENCIES
byebug (~> 11.1)
codecov (~> 0.2)
fasterer (~> 0.8)
rake (~> 13.0)
rspec (~> 3.9)
Expand Down
3 changes: 3 additions & 0 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
require 'simplecov'
SimpleCov.start

# Given that it is always loaded, you are encouraged to keep this file as
# light-weight as possible. Requiring heavyweight dependencies from this file
# will add to the boot time of your test suite on EVERY test run, even for an
Expand Down