Skip to content

Commit

Permalink
Merge pull request rails#191 from casperisfine/github-actions
Browse files Browse the repository at this point in the history
Migrate to GitHub Actions and revamp tested versions
  • Loading branch information
byroot authored May 30, 2022
2 parents 1bd9897 + 23ae45c commit 9198a95
Show file tree
Hide file tree
Showing 8 changed files with 36 additions and 69 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: CI
on: [push, pull_request]

jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
ruby: ['2.7', '3.0', '3.1']
rails: ['6.1', '7.0', 'edge']
env:
BUNDLE_GEMFILE: gemfiles/rails_${{ matrix.rails }}.gemfile
name: Ruby ${{ matrix.ruby }} / Rails ${{ matrix.rails }}
steps:
- name: Check out code
uses: actions/checkout@v2
- name: Set up Ruby ${{ matrix.ruby }}
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- name: Ruby Tests
run: bundle exec rake
51 changes: 0 additions & 51 deletions .travis.yml

This file was deleted.

6 changes: 3 additions & 3 deletions activerecord-session_store.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ Gem::Specification.new do |s|
s.extra_rdoc_files = %w( README.md )
s.rdoc_options.concat ['--main', 'README.md']

s.add_dependency('activerecord', '>= 5.2.4.1')
s.add_dependency('actionpack', '>= 5.2.4.1')
s.add_dependency('railties', '>= 5.2.4.1')
s.add_dependency('activerecord', '>= 6.1')
s.add_dependency('actionpack', '>= 6.1')
s.add_dependency('railties', '>= 6.1')
s.add_dependency('rack', '>= 2.0.8', '< 3')
s.add_dependency('multi_json', '~> 1.11', '>= 1.11.2')

Expand Down
7 changes: 0 additions & 7 deletions gemfiles/rails_5_2.gemfile

This file was deleted.

File renamed without changes.
7 changes: 0 additions & 7 deletions gemfiles/rails_6_0.gemfile

This file was deleted.

7 changes: 7 additions & 0 deletions gemfiles/rails_7.0.gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
source "https://rubygems.org"

gem "actionpack", github: "rails/rails", branch: "7-0-stable"
gem "activerecord", github: "rails/rails", branch: "7-0-stable"
gem "railties", github: "rails/rails", branch: "7-0-stable"

gemspec :path => "../"
3 changes: 2 additions & 1 deletion gemfiles/rails_edge.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ git "https://github.com/rails/rails.git", :branch => "main" do
gem "railties"
end

gem "rack", :git => "https://github.com/rack/rack.git", :branch => "master"
gem "rack", :git => "https://github.com/rack/rack.git", :branch => "main"
gem "rack-session", :git => "https://github.com/rack/rack-session.git", :branch => "main"

gemspec :path => "../"

0 comments on commit 9198a95

Please sign in to comment.