Skip to content
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

Migrate CI to GitHub Actions #824

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
57 changes: 57 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
# This workflow will download a prebuilt Ruby version, install dependencies and run tests with Rake
# For more information see: https://github.com/marketplace/actions/setup-ruby-jruby-and-truffleruby

name: build

on: [pull_request, push]

jobs:
test:
runs-on: ubuntu-20.04
strategy:
fail-fast: false
matrix:
ruby:
- '3.2'
- '3.1'
- '3.0'
- '2.7'
- '2.6'
- '2.5'
activesupport:
- '7.0'
- '6.1'
- '6.0'
- '5.2'
exclude:
- ruby: '2.5'
activesupport: '7.0'
- ruby: '2.6'
activesupport: '7.0'
- ruby: '2.7'
activesupport: '5.2'
- ruby: '3.0'
activesupport: '5.2'
- ruby: '3.0'
activesupport: '6.0'
- ruby: '3.1'
activesupport: '5.2'
- ruby: '3.1'
activesupport: '6.0'
- ruby: '3.2'
activesupport: '5.2'
- ruby: '3.2'
activesupport: '6.0'
env:
BUNDLE_GEMFILE: gemfiles/activesupport${{ matrix.activesupport }}.gemfile
steps:
- uses: actions/checkout@v3
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- run: bundle exec rake
21 changes: 0 additions & 21 deletions .travis.yml

This file was deleted.

14 changes: 13 additions & 1 deletion Appraisals
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,17 @@ appraise 'activesupport5.1' do
end

appraise 'activesupport5.2' do
gem "activesupport", "~> 5.2.0beta2"
gem "activesupport", "~> 5.2.0"
end

appraise 'activesupport6.0' do
gem "activesupport", "~> 6.0.0"
end

appraise 'activesupport6.1' do
gem "activesupport", "~> 6.1.0"
end

appraise 'activesupport7.0' do
gem "activesupport", "~> 7.0.0"
end
2 changes: 1 addition & 1 deletion gemfiles/activesupport5.2.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@

source "http://rubygems.org"

gem "activesupport", "~> 5.2.0beta2"
gem "activesupport", "~> 5.2.0"

gemspec path: "../"
7 changes: 7 additions & 0 deletions gemfiles/activesupport6.0.gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# This file was generated by Appraisal

source "http://rubygems.org"

gem "activesupport", "~> 6.0.0"

gemspec path: "../"
7 changes: 7 additions & 0 deletions gemfiles/activesupport6.1.gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# This file was generated by Appraisal

source "http://rubygems.org"

gem "activesupport", "~> 6.1.0"

gemspec path: "../"
7 changes: 7 additions & 0 deletions gemfiles/activesupport7.0.gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# This file was generated by Appraisal

source "http://rubygems.org"

gem "activesupport", "~> 7.0.0"

gemspec path: "../"
2 changes: 1 addition & 1 deletion test/test_helper.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
require 'whenever'
require 'test_case'
require 'mocha/setup'
require 'mocha/minitest'

module Whenever::TestHelpers
protected
Expand Down