Skip to content

Commit

Permalink
Merge pull request #102 from dxw/fix-coveralls
Browse files Browse the repository at this point in the history
Fix Coveralls reporting
  • Loading branch information
mec authored Dec 1, 2023
2 parents f3b014b + 473c477 commit e073515
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 10 deletions.
Empty file removed .coveralls.yml
Empty file.
4 changes: 4 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,7 @@ jobs:
gem install bundler
bundle install --jobs 4 --retry 3 --path ./vendor/bundle
bundle exec rake
- name: Coveralls
uses: coverallsapp/github-action@v2
with:
fail-on-error: false
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[![Build Status](https://github.com/dxw/mail-notify/workflows/Build/badge.svg)](https://github.com/dxw/mail-notify/actions)
[![Coverage Status](https://img.shields.io/coveralls/github/pezholio/mail-notify.svg?style=flat-square)](https://coveralls.io/github/pezholio/mail-notify)
[![Coverage Status](https://coveralls.io/repos/github/dxw/mail-notify/badge.svg?branch=fix-coveralls)](https://coveralls.io/github/dxw/mail-notify?branch=fix-coveralls)
[![Gem Version](http://img.shields.io/gem/v/mail-notify.svg?style=flat-square)](https://rubygems.org/gems/mail-notify)
[![License](http://img.shields.io/:license-mit-blue.svg)](https://mit-license.org/)

Expand Down
7 changes: 1 addition & 6 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -1,12 +1,7 @@
# frozen_string_literal: true

require "bundler/gem_tasks"
require "rspec/core/rake_task"
require "standard/rake"
require "coveralls/rake/task"

Coveralls::RakeTask.new

RSpec::Core::RakeTask.new(:spec)

task default: %i[standard spec coveralls:push]
task default: %i[standard spec]
3 changes: 2 additions & 1 deletion mail-notify.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ Gem::Specification.new do |spec|
spec.require_paths = ["lib"]

spec.add_development_dependency "bundler", "~> 2.0"
spec.add_development_dependency "coveralls", "~> 0.8.22"
spec.add_development_dependency "simplecov", "~> 0.21"
spec.add_development_dependency "simplecov-lcov"
spec.add_development_dependency "pry", "~> 0.14.1"
spec.add_development_dependency "rails", "7.0.8"
spec.add_development_dependency "rake", "~> 13.0.6"
Expand Down
7 changes: 5 additions & 2 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
# frozen_string_literal: true

require "coveralls"
Coveralls.wear!
require "simplecov"
require "simplecov-lcov"
SimpleCov::Formatter::LcovFormatter.config.report_with_single_file = true
SimpleCov.formatter = SimpleCov::Formatter::LcovFormatter
SimpleCov.start

require "bundler/setup"
require "action_mailer"
Expand Down

0 comments on commit e073515

Please sign in to comment.