From 5713c43a1e32b7a434a8adf850433ac24b926f0f Mon Sep 17 00:00:00 2001 From: Daniel Vinciguerra Date: Mon, 29 May 2023 21:14:39 -0300 Subject: [PATCH] build: add ci test coverage to project --- .github/workflows/main.yml | 5 +++++ Gemfile | 4 ++++ Gemfile.lock | 8 ++++++++ 3 files changed, 17 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index d6d2537..f840bf9 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -25,3 +25,8 @@ jobs: bundler-cache: true - name: Run the default task run: bundle exec rake + - name: Create Coverage Artifact + uses: actions/upload-artifact@v2 + with: + name: code-coverage + path: coverage/ diff --git a/Gemfile b/Gemfile index 146e670..47c55c5 100644 --- a/Gemfile +++ b/Gemfile @@ -14,3 +14,7 @@ group :development do gem "rubocop-rspec", "~> 2.22" end +group :test do + gem "simplecov", "~> 0.22.0", require: false +end + diff --git a/Gemfile.lock b/Gemfile.lock index 6479c36..3e90a2f 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -11,6 +11,7 @@ GEM ast (2.4.2) coderay (1.1.3) diff-lcs (1.5.0) + docile (1.4.0) ffi (1.15.5) formatador (1.1.0) guard (2.18.0) @@ -87,6 +88,12 @@ GEM rubocop-factory_bot (~> 2.22) ruby-progressbar (1.13.0) shellany (0.0.1) + simplecov (0.22.0) + docile (~> 1.1) + simplecov-html (~> 0.11) + simplecov_json_formatter (~> 0.1) + simplecov-html (0.12.3) + simplecov_json_formatter (0.1.4) thor (1.2.2) tty-color (0.6.0) tty-cursor (0.7.1) @@ -110,6 +117,7 @@ DEPENDENCIES rspec (~> 3.0) rubocop (~> 1.51) rubocop-rspec (~> 2.22) + simplecov (~> 0.22.0) u-menu! BUNDLED WITH