Skip to content

Commit 9badfbc

Browse files
committed
Test Rails 4 apps on GitHub Actions
1 parent 3b93d5f commit 9badfbc

90 files changed

Lines changed: 1624 additions & 0 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/ci.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,18 @@ jobs:
4141
ruby: "2.6"
4242
- gemfile: gemfiles/rails-5.0-mongoid.gemfile
4343
ruby: "2.6"
44+
- gemfile: gemfiles/rails-4.2-mongo.gemfile
45+
ruby: "2.5"
46+
- gemfile: gemfiles/rails-4.2-mongoid.gemfile
47+
ruby: "2.5"
48+
- gemfile: gemfiles/rails-4.1-mongo.gemfile
49+
ruby: "2.5"
50+
- gemfile: gemfiles/rails-4.1-mongoid.gemfile
51+
ruby: "2.5"
52+
- gemfile: gemfiles/rails-4.0-mongo.gemfile
53+
ruby: "2.5"
54+
- gemfile: gemfiles/rails-4.0-mongoid.gemfile
55+
ruby: "2.5"
4456

4557
services:
4658
mongodb:

gemfiles/rails-4.0-mongo.gemfile

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
source "https://rubygems.org"
2+
3+
gem "mongo"
4+
5+
gem "rails", "~> 4.0.0"
6+
gem "devise", "~> 3.5"
7+
gem "sqlite3", "~> 1.3.6"
8+
9+
gemspec :path => "../"

gemfiles/rails-4.0-mongoid.gemfile

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
source "https://rubygems.org"
2+
3+
gem "mongoid"
4+
5+
gem "rails", "~> 4.0.0"
6+
gem "devise", "~> 3.5"
7+
gem "sqlite3", "~> 1.3.6"
8+
9+
gemspec :path => "../"

gemfiles/rails-4.1-mongo.gemfile

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
source "https://rubygems.org"
2+
3+
gem "mongo"
4+
5+
gem "rails", "~> 4.1.0"
6+
gem "devise", ">= 4.2"
7+
gem "sqlite3", "~> 1.3.6"
8+
9+
gemspec :path => "../"

gemfiles/rails-4.1-mongoid.gemfile

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
source "https://rubygems.org"
2+
3+
gem "mongoid"
4+
5+
gem "rails", "~> 4.1.0"
6+
gem "devise", ">= 4.2"
7+
gem "sqlite3", "~> 1.3.6"
8+
9+
gemspec :path => "../"

gemfiles/rails-4.2-mongo.gemfile

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
source "https://rubygems.org"
2+
3+
gem "mongo"
4+
5+
gem "rails", "~> 4.2.8"
6+
gem "devise", ">= 4.2"
7+
gem "sqlite3", "~> 1.3.6"
8+
9+
gemspec :path => "../"

gemfiles/rails-4.2-mongoid.gemfile

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
source "https://rubygems.org"
2+
3+
gem "mongoid"
4+
5+
gem "rails", "~> 4.2.8"
6+
gem "devise", ">= 4.2"
7+
gem "sqlite3", "~> 1.3.6"
8+
9+
gemspec :path => "../"
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Add your own tasks in files placed in lib/tasks ending in .rake,
2+
# for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
3+
4+
require File.expand_path('../config/application', __FILE__)
5+
6+
Rails40App::Application.load_tasks
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
class ApplicationController < ActionController::Base
2+
# Prevent CSRF attacks by raising an exception.
3+
# For APIs, you may want to use :null_session instead.
4+
protect_from_forgery with: :exception
5+
end
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
class HomeController < ApplicationController
2+
end

0 commit comments

Comments
 (0)