Skip to content

Commit

Permalink
Merge 256e760 into 0bb638d
Browse files Browse the repository at this point in the history
  • Loading branch information
guilhermef committed Jan 24, 2022
2 parents 0bb638d + 256e760 commit 41b99bb
Show file tree
Hide file tree
Showing 6 changed files with 52 additions and 97 deletions.
65 changes: 0 additions & 65 deletions .circleci/config.yml

This file was deleted.

38 changes: 38 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Ruby

on: [push, pull_request]

jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
ruby-version: [2.6, 2.7, '3.0', 3.1, head, jruby, jruby-head]
env:
JRUBY_OPTS: "--debug"
steps:
- uses: actions/checkout@v2
- name: Set up Ruby ${{ matrix.ruby-version }}
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}
- name: Install dependencies
run: bundle install
- name: Run tests
run: bundle exec rake spec
- name: Coveralls Parallel
uses: coverallsapp/github-action@1.1.3
with:
github-token: ${{ secrets.github_token }}
flag-name: run-${{ matrix.ruby-version }}
parallel: true

finish:
needs: test
runs-on: ubuntu-latest
steps:
- name: Coveralls Finished
uses: coverallsapp/github-action@1.1.3
with:
github-token: ${{ secrets.github_token }}
parallel-finished: true
4 changes: 3 additions & 1 deletion .rspec
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
--color
--format documentation
--color
--require spec_helper
21 changes: 0 additions & 21 deletions .travis.yml

This file was deleted.

6 changes: 3 additions & 3 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ source 'https://rubygems.org'

gemspec

platforms :ruby do
gem 'coveralls', require: false
end

gem 'simplecov', require: false
gem 'simplecov-lcov', require: false
15 changes: 8 additions & 7 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@

require 'simplecov'
begin
require 'coveralls'
rescue LoadError
puts 'Running on Jruby'
end
require 'simplecov-lcov'

Coveralls.wear! if defined? Coveralls
SimpleCov::Formatter::LcovFormatter.config do |config|
config.report_with_single_file = true
config.single_report_path = 'coverage/lcov.info'
end

SimpleCov.formatters = SimpleCov::Formatter::LcovFormatter
SimpleCov.start do
add_filter '/spec/'
add_filter 'spec/'
end

RSpec.configure do |c|
Expand Down

0 comments on commit 41b99bb

Please sign in to comment.