-
Notifications
You must be signed in to change notification settings - Fork 74
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No clear examples for rails project #29
Comments
same problem to yours - name: Coveralls
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: coverage/.resultset.json I wonder if Rails is not supported |
Overalls expects a consolidated lcov.info file.
|
Here is some cleaned up code of @stephaneliu, etc. spec_helper.rb
ci.yml
Gemfile
You will need this library as well since the original is unmaintained. Cheers |
You don't need a the coveralls nor coverals_reborn gem if using github actions, it picks up the lcov file written by the simplecov gem. You need to add to your gemfile 2 gems, under the test group gem 'simplecov', require: false
gem 'simplecov-lcov', require: false Also create a file called and add this require 'simplecov-lcov'
SimpleCov::Formatter::LcovFormatter.config do |c|
c.report_with_single_file = true
c.single_report_path = 'coverage/lcov.info'
end
SimpleCov.formatters = SimpleCov::Formatter::MultiFormatter.new(
[
SimpleCov::Formatter::HTMLFormatter,
SimpleCov::Formatter::LcovFormatter,
]
)
SimpleCov.start('rails') |
Correct the generation of the line coverage following the example at coverallsapp/github-action#29.
Migrate to github actions as travis has switched to a process that will require requesting minutes regularly for open source projects, and current development is slow enough that this additional overhead is too much. Correct the generation of the line coverage following the example at coverallsapp/github-action#29. Remove dependency on coveralls gem as no longer needed if using the action. Patch older versions of simplecov to contain a branch_coverage? method to ensure working with simplecov-lcov.
The coveralls_reborn mentions that the gem isn't needed for Actions. Followed setup from coverallsapp/github-action#29 (comment)
The coveralls_reborn mentions that the gem isn't needed for Actions. Followed setup from coverallsapp/github-action#29 (comment)
The coveralls_reborn mentions that the gem isn't needed for Actions. Followed setup from coverallsapp/github-action#29 (comment)
The coveralls_reborn mentions that the gem isn't needed for Actions. Followed setup from coverallsapp/github-action#29 (comment)
I'm new to Ruby on Rails, Github Actions and Coveralls, and I can't seem to get this github action working. It doesn't seem to be able to find the coverage report file after I run rspec tests.
My .coveralls.yml file looks like this:
What am I missing?
The text was updated successfully, but these errors were encountered: