Skip to content
This repository has been archived by the owner on May 4, 2024. It is now read-only.

Commit

Permalink
Merge pull request #22 from st0012/config-test-coverage
Browse files Browse the repository at this point in the history
Config test coverage for codeclimate
  • Loading branch information
st0012 committed Dec 29, 2019
2 parents eb8335d + 3a7775f commit a348406
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 2 deletions.
13 changes: 11 additions & 2 deletions .github/workflows/ruby.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,21 +13,30 @@ jobs:
os: [ubuntu-latest]
steps:
- uses: actions/checkout@v1

- name: Set up Ruby ${{ matrix.ruby_version }}
uses: actions/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby_version }}

- name: Install sqlite
run: |
# See https://github.community/t5/GitHub-Actions/ubuntu-latest-Apt-repository-list-issues/td-p/41122/page/2
sudo rm -f /etc/apt/sources.list.d/dotnetdev.list /etc/apt/sources.list.d/microsoft-prod.list
sudo apt-get update
sudo apt-get install libsqlite3-dev
- name: Build and test with Rails ${{ matrix.rails_version }}
- name: Build with Rails ${{ matrix.rails_version }}
env:
RAILS_VERSION: ${{ matrix.rails_version }}
run: |
gem install bundler
bundle install --jobs 4 --retry 3
bundle exec rake
- name: Run test with Rails ${{ matrix.rails_version }} and publish result
uses: paambaati/codeclimate-action@v2.3.0
env:
CC_TEST_REPORTER_ID: ${{secrets.CC_TEST_REPORTER_ID}}
with:
coverageCommand: bundle exec rake
debug: true
8 changes: 8 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,10 @@ GEM
concurrent-ruby (1.1.5)
database_cleaner (1.7.0)
diff-lcs (1.3)
docile (1.3.2)
i18n (1.7.0)
concurrent-ruby (~> 1.0)
json (2.3.0)
method_source (0.9.2)
minitest (5.13.0)
pry (0.12.2)
Expand All @@ -43,6 +45,11 @@ GEM
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.8.0)
rspec-support (3.8.2)
simplecov (0.17.1)
docile (~> 1.1)
json (>= 1.8, < 3)
simplecov-html (~> 0.10.0)
simplecov-html (0.10.2)
sqlite3 (1.4.1)
thread_safe (0.3.6)
tzinfo (1.2.6)
Expand All @@ -58,6 +65,7 @@ DEPENDENCIES
pry
rake (~> 10.0)
rspec (~> 3.0)
simplecov (= 0.17.1)
sqlite3 (>= 1.3.6)
tapping_device!

Expand Down
2 changes: 2 additions & 0 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
require "pry"
require "model"
require "database_cleaner"
require 'simplecov'
SimpleCov.start

RSpec.configure do |config|
# Enable flags like --only-failures and --next-failure
Expand Down
1 change: 1 addition & 0 deletions tapping_device.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,5 @@ Gem::Specification.new do |spec|
spec.add_development_dependency "pry"
spec.add_development_dependency "rake", "~> 10.0"
spec.add_development_dependency "rspec", "~> 3.0"
spec.add_development_dependency "simplecov", "0.17.1"
end

0 comments on commit a348406

Please sign in to comment.