Commit 16aa715a by Mathieu Jobin

ruby 2.5 is minimum, switch to github actions

parent 5bb13654
# 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: [push, pull_request]
jobs:
test:
runs-on: ubuntu-20.04
strategy:
fail-fast: false
matrix:
ruby:
- 3.0
- 2.7
- 2.6
- 2.5
- jruby-9.2.8.0
env:
- RAILS='~> 4.2.0' SQLITE_VERSION='~> 1.3.6'
- RAILS='~> 5.0.0' SQLITE_VERSION='~> 1.3.6'
- RAILS='~> 5.1.0'
- RAILS='~> 5.2.0'
- RAILS='~> 6.1.0'
- RAILS='~> 7.0.0.alpha2'
- RAILS='edge'
exclude:
# Rails edge is now 7.x and requires ruby 2.7
- env: RAILS='edge'
ruby: 2.6
- env: RAILS='edge'
ruby: 2.5
steps:
- uses: actions/checkout@v2
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- run: bundle exec rake
sudo: false
language: ruby
before_install:
- gem query -I -n "^bundler$" -v ">=2" || gem uninstall -x bundler -v ">=2" || rvm @global do gem uninstall -x bundler -v ">=2"
- gem query -i -n "^bundler$" -v "<2" || gem install bundler -v "<2"
cache: bundler
rvm:
- 2.3.8
- 2.4.5
- 2.5.3
- 2.6.3
- jruby-9.2.8.0
env:
matrix:
- RAILS='~> 4.2.0' SQLITE_VERSION='~> 1.3.6'
- RAILS='~> 5.0.0' SQLITE_VERSION='~> 1.3.6'
- RAILS='~> 5.1.0'
- RAILS='~> 5.2.0'
- RAILS='~> 6.1.0'
- RAILS='master'
matrix:
allow_failures:
- env: RAILS='~> 4.2.0' SQLITE_VERSION='~> 1.3.6'
rvm: jruby-9.2.8.0
- env: RAILS='~> 5.0.0' SQLITE_VERSION='~> 1.3.6'
rvm: jruby-9.2.8.0
- env: RAILS='~> 5.1.0'
rvm: jruby-9.2.8.0
- env: RAILS='~> 5.2.0'
rvm: jruby-9.2.8.0
- env: RAILS='master'
rvm: jruby-9.2.8.0
- env: RAILS='~> 6.1.0'
rvm: jruby-9.2.8.0
exclude:
- rvm: 2.3.8
env: RAILS='master'
- rvm: 2.4.5
env: RAILS='master'
- rvm: 2.3.8
env: RAILS='~> 6.1.0'
- rvm: 2.4.5
env: RAILS='~> 6.1.0'
...@@ -20,7 +20,7 @@ end ...@@ -20,7 +20,7 @@ end
rails = ENV['RAILS'] || '~> 5.2.0' rails = ENV['RAILS'] || '~> 5.2.0'
if rails == 'master' if rails == 'edge'
gem 'rails', github: 'rails/rails' gem 'rails', github: 'rails/rails'
else else
gem 'rails', rails gem 'rails', rails
......
...@@ -11,7 +11,7 @@ Gem::Specification.new do |s| ...@@ -11,7 +11,7 @@ Gem::Specification.new do |s|
s.license = 'MIT' s.license = 'MIT'
s.summary = "Paranoia is a re-implementation of acts_as_paranoid for Rails 3, 4, and 5, using much, much, much less code." s.summary = "Paranoia is a re-implementation of acts_as_paranoid for Rails 3, 4, and 5, using much, much, much less code."
s.description = <<-DSC s.description = <<-DSC
Paranoia is a re-implementation of acts_as_paranoid for Rails 4, 5, and 6, Paranoia is a re-implementation of acts_as_paranoid for Rails 4, 5, 6, and 7,
using much, much, much less code. You would use either plugin / gem if you using much, much, much less code. You would use either plugin / gem if you
wished that when you called destroy on an Active Record object that it wished that when you called destroy on an Active Record object that it
didn't actually destroy it, but just "hid" the record. Paranoia does this didn't actually destroy it, but just "hid" the record. Paranoia does this
...@@ -22,7 +22,7 @@ Gem::Specification.new do |s| ...@@ -22,7 +22,7 @@ Gem::Specification.new do |s|
s.required_rubygems_version = ">= 1.3.6" s.required_rubygems_version = ">= 1.3.6"
s.required_ruby_version = '>= 2.0' s.required_ruby_version = '>= 2.5'
s.add_dependency 'activerecord', '>= 4.0', '< 7.1' s.add_dependency 'activerecord', '>= 4.0', '< 7.1'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment