From 3229a3fda230c8aa60fa38e5aac86c888838ff7d Mon Sep 17 00:00:00 2001 From: Artemy Kirienko Date: Fri, 24 Jul 2020 17:36:46 +0300 Subject: [PATCH] just a test :zap: --- .github/workflows/ruby.yml | 7 +++++++ Gemfile | 1 + Gemfile.lock | 11 +++++++++++ spec/spec_helper.rb | 3 +++ 4 files changed, 22 insertions(+) diff --git a/.github/workflows/ruby.yml b/.github/workflows/ruby.yml index 14ccbc1..52d0392 100644 --- a/.github/workflows/ruby.yml +++ b/.github/workflows/ruby.yml @@ -20,3 +20,10 @@ jobs: bundle exec rake bundle exec rubocop bundle exec fasterer + - name: Test & publish code coverage + uses: paambaati/codeclimate-action@v2.6.0 + env: + CC_TEST_REPORTER_ID: ${{secrets.CC_TEST_REPORTER_ID}} + with: + coverageCommand: bundle exec rake + debug: true diff --git a/Gemfile b/Gemfile index 991dc54..70199e6 100644 --- a/Gemfile +++ b/Gemfile @@ -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' diff --git a/Gemfile.lock b/Gemfile.lock index 2581b36..eaa5495 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -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) @@ -43,6 +49,10 @@ 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 @@ -50,6 +60,7 @@ PLATFORMS DEPENDENCIES byebug (~> 11.1) + codecov (~> 0.2) fasterer (~> 0.8) rake (~> 13.0) rspec (~> 3.9) diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 2a51765..2dd3dee 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -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