Skip to content

Commit

Permalink
merge test results
Browse files Browse the repository at this point in the history
  • Loading branch information
balvig committed Dec 26, 2021
1 parent e9274c2 commit b176972
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 2 deletions.
14 changes: 14 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,22 @@ jobs:
- run:
name: Run tests
command: bundle exec rake
coverage:
docker:
- image: cimg/ruby:3.0.0
steps:
- checkout
- ruby/bundle-install
- run:
name: Push coverage to coveralls
command: bundle exec rake coveralls:push

workflows:
tests:
jobs:
- build:
matrix:
alias: Rails 5
parameters:
rails_version: ["~> 4.0"]
ruby_version: ["2.6.6"]
Expand All @@ -49,11 +59,15 @@ workflows:
ruby_version: ["2.6.6", "2.7.2"]
- build:
matrix:
alias: Rails 6
parameters:
rails_version: ["~> 6.0"]
ruby_version: ["2.6.6", "2.7.2", "3.0.0"]
- build:
matrix:
alias: Rails 7
parameters:
rails_version: ["~> 7.0"]
ruby_version: ["2.7.2", "3.0.0"]
- coverage:
requires: ["Rails 5", "Rails 6", "Rails 7"]
3 changes: 3 additions & 0 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,6 @@ Rake::TestTask.new do |t|
t.libs << 'test'
t.pattern = 'test/*_test.rb'
end

require 'coveralls/rake/task'
Coveralls::RakeTask.new
3 changes: 1 addition & 2 deletions test/test_helper.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# Coverage
require 'coveralls'
Coveralls.wear!
SimpleCov.formatter = Coveralls::SimpleCov::Formatter
Coveralls.wear_merged!
SimpleCov.start do
add_filter 'test'
end
Expand Down

0 comments on commit b176972

Please sign in to comment.