Skip to content

Commit

Permalink
Merge pull request #18 from akariiijima/add-ci-for-support-ar6.0.Z
Browse files Browse the repository at this point in the history
Add CI for support-ar6.0.z
  • Loading branch information
hirocaster authored Aug 30, 2023
2 parents 3d4a955 + 1af32dc commit 9673991
Show file tree
Hide file tree
Showing 35 changed files with 383 additions and 120 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/test_ruby_2_4.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Exec Rspec
run-name: Matrix building for ruby 2.4 ✖️ 【rails 5.0 - 6.0】 🚀
on: [push]

jobs:
ruby_2_4:
strategy:
fail-fast: false
matrix:
arversion: ['5_0_0', '5_0_1', '5_0_2', '5_0_3', '5_0_4', '5_0_5', '5_0_6', '5_0_7',
'5_1_0', '5_1_1', '5_1_2', '5_1_3', '5_1_4', '5_1_5', '5_1_6', '5_1_7',
'5_2_0', '5_2_1', '5_2_2', '5_2_3', '5_2_4', '5_2_5', '5_2_6', '5_2_7', '5_2_8',
'6_0_0', '6_0_1', '6_0_2', '6_0_3', '6_0_4', '6_0_5', '6_0_6']
runs-on: ubuntu-22.04
env:
BUNDLE_GEMFILE: ${{ github.workspace }}/gemfiles/rails${{ matrix.arversion }}.gemfile
MYSQL_PWD: root
steps:
- name: Check out repository code
uses: actions/checkout@v3
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '2.4'
bundler: ${{ contains(fromJSON('["5_0_0", "5_0_1", "5_0_2", "5_0_3", "5_0_4", "5_1_0", "5_1_1", "5_1_2"]'), matrix.arversion) && '1' || 'latest' }}
bundler-cache: true
- name: Start mysql
run: sudo systemctl start mysql.service
- name: Reset DB
run: bundle exec rake turntable:db:reset
- name: Run RSpec
run: bundle exec rake spec
32 changes: 32 additions & 0 deletions .github/workflows/test_ruby_2_5.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Exec Rspec
run-name: Matrix building for ruby 2.5 ✖️ 【rails 5.0 - 6.0】 🚀
on: [push]

jobs:
ruby_2_5:
strategy:
fail-fast: false
matrix:
arversion: ['5_0_0', '5_0_1', '5_0_2', '5_0_3', '5_0_4', '5_0_5', '5_0_6', '5_0_7',
'5_1_0', '5_1_1', '5_1_2', '5_1_3', '5_1_4', '5_1_5', '5_1_6', '5_1_7',
'5_2_0', '5_2_1', '5_2_2', '5_2_3', '5_2_4', '5_2_5', '5_2_6', '5_2_7', '5_2_8',
'6_0_0', '6_0_1', '6_0_2', '6_0_3', '6_0_4', '6_0_5', '6_0_6']
runs-on: ubuntu-22.04
env:
BUNDLE_GEMFILE: ${{ github.workspace }}/gemfiles/rails${{ matrix.arversion }}.gemfile
MYSQL_PWD: root
steps:
- name: Check out repository code
uses: actions/checkout@v3
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '2.5'
bundler: ${{ contains(fromJSON('["5_0_0", "5_0_1", "5_0_2", "5_0_3", "5_0_4", "5_1_0", "5_1_1", "5_1_2"]'), matrix.arversion) && '1' || 'latest' }}
bundler-cache: true
- name: Start mysql
run: sudo systemctl start mysql.service
- name: Reset DB
run: bundle exec rake turntable:db:reset
- name: Run RSpec
run: bundle exec rake spec
32 changes: 32 additions & 0 deletions .github/workflows/test_ruby_2_6.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Exec Rspec
run-name: Matrix building for ruby 2.6 ✖️ 【rails 5.0 - 6.0】 🚀
on: [push]

jobs:
ruby_2_6:
strategy:
fail-fast: false
matrix:
arversion: ['5_0_0', '5_0_1', '5_0_2', '5_0_3', '5_0_4', '5_0_5', '5_0_6', '5_0_7',
'5_1_0', '5_1_1', '5_1_2', '5_1_3', '5_1_4', '5_1_5', '5_1_6', '5_1_7',
'5_2_0', '5_2_1', '5_2_2', '5_2_3', '5_2_4', '5_2_5', '5_2_6', '5_2_7', '5_2_8',
'6_0_0', '6_0_1', '6_0_2', '6_0_3', '6_0_4', '6_0_5', '6_0_6']
runs-on: ubuntu-22.04
env:
BUNDLE_GEMFILE: ${{ github.workspace }}/gemfiles/rails${{ matrix.arversion }}.gemfile
MYSQL_PWD: root
steps:
- name: Check out repository code
uses: actions/checkout@v3
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '2.6'
bundler: ${{ contains(fromJSON('["5_0_0", "5_0_1", "5_0_2", "5_0_3", "5_0_4", "5_1_0", "5_1_1", "5_1_2"]'), matrix.arversion) && '1' || 'latest' }}
bundler-cache: true
- name: Start mysql
run: sudo systemctl start mysql.service
- name: Reset DB
run: bundle exec rake turntable:db:reset
- name: Run RSpec
run: bundle exec rake spec
32 changes: 32 additions & 0 deletions .github/workflows/test_ruby_2_7.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Exec Rspec
run-name: Matrix building for ruby 2.7 ✖️ 【rails 5.0 - 6.0】 🚀
on: [push]

jobs:
ruby_2_7:
strategy:
fail-fast: false
matrix:
arversion: ['5_0_0', '5_0_1', '5_0_2', '5_0_3', '5_0_4', '5_0_5', '5_0_6', '5_0_7',
'5_1_0', '5_1_1', '5_1_2', '5_1_3', '5_1_4', '5_1_5', '5_1_6', '5_1_7',
'5_2_0', '5_2_1', '5_2_2', '5_2_3', '5_2_4', '5_2_5', '5_2_6', '5_2_7', '5_2_8',
'6_0_0', '6_0_1', '6_0_2', '6_0_3', '6_0_4', '6_0_5', '6_0_6']
runs-on: ubuntu-22.04
env:
BUNDLE_GEMFILE: ${{ github.workspace }}/gemfiles/rails${{ matrix.arversion }}.gemfile
MYSQL_PWD: root
steps:
- name: Check out repository code
uses: actions/checkout@v3
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '2.7'
bundler: ${{ contains(fromJSON('["5_0_0", "5_0_1", "5_0_2", "5_0_3", "5_0_4", "5_1_0", "5_1_1", "5_1_2"]'), matrix.arversion) && '1' || 'latest' }}
bundler-cache: true
- name: Start mysql
run: sudo systemctl start mysql.service
- name: Reset DB
run: bundle exec rake turntable:db:reset
- name: Run RSpec
run: RUBYOPT='-W:deprecated' bundle exec rake spec
78 changes: 0 additions & 78 deletions .travis.yml

This file was deleted.

8 changes: 6 additions & 2 deletions gemfiles/rails5_0_0.gemfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
source "https://rubygems.org"

gem "rails", "5.0.0"
gem "railties", "5.0.0"
gem "activerecord", "5.0.0"
gem "activesupport", "5.0.0"

gem "actionview", "5.0.0"
gem "mysql2", "~> 0.4.4"

gem "minitest", "< 5.3.4"
gem "nokogiri", "~> 1.10" if RUBY_VERSION.to_f < 2.5
gem "loofah", "2.20.0" if RUBY_VERSION.to_f < 2.5
gem "dalli", "~> 2.7" if RUBY_VERSION.to_f < 2.5

gemspec :path => '../'
9 changes: 6 additions & 3 deletions gemfiles/rails5_0_1.gemfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
source "https://rubygems.org"

gem "rails", "5.0.1"
gem "railties", "5.0.1"
gem "activerecord", "5.0.1"
gem "activesupport", "5.0.1"

gem "actionview", "5.0.1"
gem "mysql2", "~> 0.4.4"

gem "minitest", "< 5.3.4"
gem "mocha", "~> 0.14", require: false
gem "nokogiri", "~> 1.10" if RUBY_VERSION.to_f < 2.5
gem "loofah", "2.20.0" if RUBY_VERSION.to_f < 2.5
gem "dalli", "~> 2.7" if RUBY_VERSION.to_f < 2.5

gemspec :path => '../'
9 changes: 6 additions & 3 deletions gemfiles/rails5_0_2.gemfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
source "https://rubygems.org"

gem "rails", "5.0.2"
gem "railties", "5.0.2"
gem "activerecord", "5.0.2"
gem "activesupport", "5.0.2"

gem "actionview", "5.0.2"
gem "mysql2", "~> 0.4.4"

gem "minitest", "< 5.3.4"
gem "mocha", "~> 0.14", require: false
gem "nokogiri", "~> 1.10" if RUBY_VERSION.to_f < 2.5
gem "loofah", "2.20.0" if RUBY_VERSION.to_f < 2.5
gem "dalli", "~> 2.7" if RUBY_VERSION.to_f < 2.5

gemspec :path => '../'
9 changes: 6 additions & 3 deletions gemfiles/rails5_0_3.gemfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
source "https://rubygems.org"

gem "rails", "5.0.3"
gem "railties", "5.0.3"
gem "activerecord", "5.0.3"
gem "activesupport", "5.0.3"

gem "actionview", "5.0.3"
gem "mysql2", "~> 0.4.4"

gem "minitest", "< 5.3.4"
gem "mocha", "~> 0.14", require: false
gem "nokogiri", "~> 1.10" if RUBY_VERSION.to_f < 2.5
gem "loofah", "2.20.0" if RUBY_VERSION.to_f < 2.5
gem "dalli", "~> 2.7" if RUBY_VERSION.to_f < 2.5

gemspec :path => '../'
9 changes: 6 additions & 3 deletions gemfiles/rails5_0_4.gemfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
source "https://rubygems.org"

gem "rails", "5.0.4"
gem "railties", "5.0.4"
gem "activerecord", "5.0.4"
gem "activesupport", "5.0.4"

gem "actionview", "5.0.4"
gem "mysql2", "~> 0.4.4"

gem "minitest", "< 5.3.4"
gem "mocha", "~> 0.14", require: false
gem "nokogiri", "~> 1.10" if RUBY_VERSION.to_f < 2.5
gem "loofah", "2.20.0" if RUBY_VERSION.to_f < 2.5
gem "dalli", "~> 2.7" if RUBY_VERSION.to_f < 2.5

gemspec :path => '../'
9 changes: 6 additions & 3 deletions gemfiles/rails5_0_5.gemfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
source "https://rubygems.org"

gem "rails", "5.0.5"
gem "railties", "5.0.5"
gem "activerecord", "5.0.5"
gem "activesupport", "5.0.5"

gem "actionview", "5.0.5"
gem "mysql2", "~> 0.4.4"

gem "minitest", "< 5.3.4"
gem "mocha", "~> 0.14", require: false
gem "nokogiri", "~> 1.10" if RUBY_VERSION.to_f < 2.5
gem "loofah", "2.20.0" if RUBY_VERSION.to_f < 2.5
gem "dalli", "~> 2.7" if RUBY_VERSION.to_f < 2.5

gemspec :path => '../'
9 changes: 6 additions & 3 deletions gemfiles/rails5_0_6.gemfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
source "https://rubygems.org"

gem "rails", "5.0.6"
gem "railties", "5.0.6"
gem "activerecord", "5.0.6"
gem "activesupport", "5.0.6"

gem "actionview", "5.0.6"
gem "mysql2", "~> 0.4.4"

gem "minitest", "< 5.3.4"
gem "mocha", "~> 0.14", require: false
gem "nokogiri", "~> 1.10" if RUBY_VERSION.to_f < 2.5
gem "loofah", "2.20.0" if RUBY_VERSION.to_f < 2.5
gem "dalli", "~> 2.7" if RUBY_VERSION.to_f < 2.5

gemspec :path => '../'
9 changes: 7 additions & 2 deletions gemfiles/rails5_0_7.gemfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
source "https://rubygems.org"

gem "rails", "5.0.7"
gem "railties", "5.0.7"
gem "activerecord", "5.0.7"
gem "activesupport", "5.0.7"
gem "actionview", "5.0.7"
gem "mysql2", "~> 0.4.4"

gem "minitest", "< 5.3.4"
gem "mocha", "~> 0.14", require: false
gem "nokogiri", "~> 1.10" if RUBY_VERSION.to_f < 2.5
gem "loofah", "2.20.0" if RUBY_VERSION.to_f < 2.5
gem "dalli", "~> 2.7" if RUBY_VERSION.to_f < 2.5

gemspec :path => '../'
8 changes: 5 additions & 3 deletions gemfiles/rails5_1_0.gemfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
source "https://rubygems.org"

gem "rails", "5.1.0"
gem "railties", "5.1.0"
gem "activerecord", "5.1.0"
gem "activesupport", "5.1.0"
gem "actionview", "5.1.0"

gem "mysql2", "~> 0.4.4"

gem "minitest", "< 5.3.4"
gem "mocha", "~> 0.14", require: false
gem "nokogiri", "~> 1.10" if RUBY_VERSION.to_f < 2.5
gem "loofah", "2.20.0" if RUBY_VERSION.to_f < 2.5
gem "dalli", "~> 2.7" if RUBY_VERSION.to_f < 2.5

gemspec :path => '../'
8 changes: 5 additions & 3 deletions gemfiles/rails5_1_1.gemfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
source "https://rubygems.org"

gem "rails", "5.1.1"
gem "railties", "5.1.1"
gem "activerecord", "5.1.1"
gem "activesupport", "5.1.1"
gem "actionview", "5.1.1"

gem "mysql2", "~> 0.4.4"

gem "minitest", "< 5.3.4"
gem "mocha", "~> 0.14", require: false
gem "nokogiri", "~> 1.10" if RUBY_VERSION.to_f < 2.5
gem "loofah", "2.20.0" if RUBY_VERSION.to_f < 2.5
gem "dalli", "~> 2.7" if RUBY_VERSION.to_f < 2.5

gemspec :path => '../'
Loading

0 comments on commit 9673991

Please sign in to comment.