Skip to content

Commit

Permalink
Add codeclimate test coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
hasghari committed Feb 27, 2020
1 parent f7b585a commit b5ad95a
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/ruby.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,14 @@ jobs:
uses: actions/setup-ruby@v1
with:
ruby-version: 2.6.x
- name: Build and test with RSpec
- name: Configure Bundler
run: |
gem install bundler -v 1.17.3 --no-document
bundle install --jobs 4 --retry 3
bundle exec rspec
- name: Run tests with RSpec
uses: paambaati/codeclimate-action@v2.5.3
env:
CC_TEST_REPORTER_ID: 0e4e712966b3d2fdf63128dc4d0c863fd4c61888b557ffb1673111b4c8b3bdc9
with:
coverageCommand: bundle exec rspec
debug: false
6 changes: 6 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ GEM
remote: https://rubygems.org/
specs:
diff-lcs (1.3)
docile (1.3.2)
rake (10.5.0)
rspec (3.8.0)
rspec-core (~> 3.8.0)
Expand All @@ -21,6 +22,10 @@ GEM
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.8.0)
rspec-support (3.8.2)
simplecov (0.18.4)
docile (~> 1.1)
simplecov-html (~> 0.11)
simplecov-html (0.12.2)

PLATFORMS
ruby
Expand All @@ -30,6 +35,7 @@ DEPENDENCIES
conifer!
rake (~> 10.0)
rspec (~> 3.0)
simplecov (= 0.18.4)

BUNDLED WITH
1.17.3
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
![](https://github.com/hasghari/conifer/workflows/Ruby/badge.svg)
[![Maintainability](https://api.codeclimate.com/v1/badges/f02c1de9e9d7dbfa5800/maintainability)](https://codeclimate.com/github/hasghari/conifer/maintainability)
[![Test Coverage](https://api.codeclimate.com/v1/badges/f02c1de9e9d7dbfa5800/test_coverage)](https://codeclimate.com/github/hasghari/conifer/test_coverage)

# Conifer

Expand Down
1 change: 1 addition & 0 deletions conifer.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,5 @@ Gem::Specification.new do |spec|
spec.add_development_dependency 'bundler', '~> 1.17'
spec.add_development_dependency 'rake', '~> 10.0'
spec.add_development_dependency 'rspec', '~> 3.0'
spec.add_development_dependency 'simplecov', '0.18.4'
end
3 changes: 3 additions & 0 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# frozen_string_literal: true

require 'simplecov'
SimpleCov.start

require 'bundler/setup'
require 'conifer'

Expand Down

0 comments on commit b5ad95a

Please sign in to comment.