Skip to content

Commit

Permalink
switch to github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
urkle committed Dec 8, 2021
1 parent efc27e1 commit 3b711d8
Show file tree
Hide file tree
Showing 5 changed files with 66 additions and 10 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/prs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: CI PR Builds

on:
push:
branches:
- master
pull_request:

concurrency:
group: ${{ github.head_ref }}
cancel-in-progress: true

jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
ruby-version: ['2.5', '2.6', '2.7', '3.0']
steps:
- uses: actions/checkout@v2

- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}
bundler-cache: true

- name: Run tests
run: bundle exec rake spec

- name: Coveralls Parallel
uses: coverallsapp/github-action@master
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@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
parallel-finished: true
18 changes: 18 additions & 0 deletions .simplecov
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
SimpleCov.configure do
enable_coverage :branch
add_filter '/spec/'

add_group 'Binaries', '/bin/'
add_group 'Libraries', '/lib/'

if ENV['CI']
require 'simplecov-lcov'

SimpleCov::Formatter::LcovFormatter.config do |c|
c.report_with_single_file = true
c.single_report_path = 'coverage/lcov.info'
end

formatter SimpleCov::Formatter::LcovFormatter
end
end
4 changes: 0 additions & 4 deletions .travis.yml

This file was deleted.

4 changes: 0 additions & 4 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,3 @@ require "bundler/gem_tasks"

require 'rspec/core/rake_task'
RSpec::Core::RakeTask.new(:spec)

require 'coveralls/rake/task'
Coveralls::RakeTask.new
task :travis => [:spec, 'coveralls:push']
4 changes: 2 additions & 2 deletions schema_dev.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,15 @@ Gem::Specification.new do |gem|
gem.required_ruby_version = ">= 2.5.0"

gem.add_dependency "activesupport", ">= 5.2", "< 6.2"
gem.add_dependency "coveralls_reborn", "~> 0.23"
gem.add_dependency "faraday", "~> 1.0"
gem.add_dependency "simplecov"
gem.add_dependency 'simplecov-lcov', '~> 0.8.0'
gem.add_dependency "thor", '>= 0.19', '< 2.0'
gem.add_dependency "which_works", "~> 1.0"

gem.add_development_dependency "bundler"
gem.add_development_dependency "rake", "~> 13.0"
gem.add_development_dependency "rspec", "~> 3.0"
gem.add_development_dependency "rspec-given", "~> 3.8"
gem.add_development_dependency "simplecov"
gem.add_development_dependency "webmock", "~> 3.0"
end

0 comments on commit 3b711d8

Please sign in to comment.