From 0f72aa8e3e923bf2437413092935a1983e626c38 Mon Sep 17 00:00:00 2001 From: Kushal Lahoti Date: Tue, 1 Oct 2024 18:20:34 -0500 Subject: [PATCH] Modifies ci.yml file to resolve test issues --- .github/workflows/ci.yml | 1 + Gemfile | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6c03036..ad195d1 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -116,6 +116,7 @@ jobs: - name: Check test coverage run: | + bundle exec rails test covered_percent=$(ruby -r simplecov -e "puts SimpleCov.result.covered_percent") if (( $(echo "$covered_percent < 90" | bc -l) )); then echo "Code coverage is below 90%: $covered_percent%" diff --git a/Gemfile b/Gemfile index bec15fa..efb8ef4 100644 --- a/Gemfile +++ b/Gemfile @@ -65,7 +65,7 @@ group :test do gem "database_cleaner" gem "rails-controller-testing" gem "rspec-rails" - gem "simplecov" + gem "simplecov", require: false gem "ZenTest" # gem "codeclimate-test-reporter", require: nil end