diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 00000000..0aad47d7 --- /dev/null +++ b/.github/workflows/ci.yml @@ -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 diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 2d03f9b3..00000000 --- a/.travis.yml +++ /dev/null @@ -1,21 +0,0 @@ -language: ruby - -before_install: - - gem install bundler - - unset _JAVA_OPTIONS -rvm: - - 2.4.6 - - 2.5.5 - - 2.6.3 - - jruby-9.2.6.0 - -gemfile: - - gemfiles/activesupport4.1.gemfile - - gemfiles/activesupport4.2.gemfile - - gemfiles/activesupport5.0.gemfile - - gemfiles/activesupport5.1.gemfile - - gemfiles/activesupport5.2.gemfile - -env: - global: - - JRUBY_OPTS=--debug diff --git a/Appraisals b/Appraisals index f45cb26f..e7d537ef 100644 --- a/Appraisals +++ b/Appraisals @@ -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 diff --git a/gemfiles/activesupport5.2.gemfile b/gemfiles/activesupport5.2.gemfile index 134276d9..16c9ae36 100644 --- a/gemfiles/activesupport5.2.gemfile +++ b/gemfiles/activesupport5.2.gemfile @@ -2,6 +2,6 @@ source "http://rubygems.org" -gem "activesupport", "~> 5.2.0beta2" +gem "activesupport", "~> 5.2.0" gemspec path: "../" diff --git a/gemfiles/activesupport6.0.gemfile b/gemfiles/activesupport6.0.gemfile new file mode 100644 index 00000000..f4e1d036 --- /dev/null +++ b/gemfiles/activesupport6.0.gemfile @@ -0,0 +1,7 @@ +# This file was generated by Appraisal + +source "http://rubygems.org" + +gem "activesupport", "~> 6.0.0" + +gemspec path: "../" diff --git a/gemfiles/activesupport6.1.gemfile b/gemfiles/activesupport6.1.gemfile new file mode 100644 index 00000000..3341dbc7 --- /dev/null +++ b/gemfiles/activesupport6.1.gemfile @@ -0,0 +1,7 @@ +# This file was generated by Appraisal + +source "http://rubygems.org" + +gem "activesupport", "~> 6.1.0" + +gemspec path: "../" diff --git a/gemfiles/activesupport7.0.gemfile b/gemfiles/activesupport7.0.gemfile new file mode 100644 index 00000000..d811a3ba --- /dev/null +++ b/gemfiles/activesupport7.0.gemfile @@ -0,0 +1,7 @@ +# This file was generated by Appraisal + +source "http://rubygems.org" + +gem "activesupport", "~> 7.0.0" + +gemspec path: "../" diff --git a/test/test_helper.rb b/test/test_helper.rb index 77e3492f..c1a97af5 100644 --- a/test/test_helper.rb +++ b/test/test_helper.rb @@ -1,6 +1,6 @@ require 'whenever' require 'test_case' -require 'mocha/setup' +require 'mocha/minitest' module Whenever::TestHelpers protected