Skip to content

Commit

Permalink
Modifies ci.yml file to resolve test issues
Browse files Browse the repository at this point in the history
  • Loading branch information
kushalnl7 committed Oct 1, 2024
1 parent fe064f8 commit 0f72aa8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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%"
Expand Down
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 0f72aa8

Please sign in to comment.