forked from metaskills/minitest-spec-rails
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support Rails v6 & Move to GitHub Actions (metaskills#95)
Support Rails v6 & Move to GitHub Actions
- Loading branch information
1 parent
2c3def3
commit d3da88e
Showing
17 changed files
with
398 additions
and
469 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,34 @@ | ||
name: Ruby | ||
|
||
name: CI | ||
on: [push] | ||
|
||
jobs: | ||
build: | ||
|
||
test: | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
matrix: | ||
ruby: | ||
- '2.5.x' | ||
- '2.6.x' | ||
rails: | ||
- 'rails_v5.1.x' | ||
- 'rails_v5.2.x' | ||
- 'rails_v6.0.x' | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- name: Set up Ruby | ||
uses: actions/setup-ruby@v1 | ||
with: | ||
ruby-version: 2.5.5 | ||
- name: Build and test with Rake | ||
run: | | ||
gem install bundler | ||
bundle install --jobs 4 --retry 3 | ||
bundle exec rake | ||
- name: Checkout | ||
uses: actions/checkout@v1 | ||
- name: Setup System | ||
run: | | ||
sudo apt-get install libsqlite3-dev | ||
- name: Setup Ruby | ||
uses: actions/setup-ruby@v1 | ||
with: | ||
ruby-version: ${{ matrix.ruby }} | ||
- name: Bundle | ||
env: | ||
MTSR_RAILS_VERSION: ${{ matrix.rails }} | ||
run: | | ||
export BUNDLE_GEMFILE="${GITHUB_WORKSPACE}/gemfiles/${MTSR_RAILS_VERSION}.gemfile" | ||
gem uninstall -aIx bundler | ||
gem install bundler -v 1.17.3 | ||
bundle install --jobs 4 --retry 3 | ||
- name: Test | ||
run: bundle exec rake |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,16 @@ | ||
appraise 'rails41' do | ||
gem 'rails', '~> 4.1.0' | ||
end | ||
|
||
appraise 'rails42' do | ||
gem 'rails', '~> 4.2.0' | ||
end | ||
|
||
appraise 'rails50' do | ||
gem 'rails', '5.0.0' | ||
appraise 'rails-v5.1.x' do | ||
gem 'rails', '~> 5.1.0' | ||
# https://github.com/rails/rails/issues/29031 | ||
gem 'minitest', '5.10.1' | ||
end | ||
|
||
appraise 'rails51' do | ||
gem 'rails', '5.1.0' | ||
# https://github.com/rails/rails/issues/29031 | ||
gem 'minitest', '5.10.1' | ||
appraise 'rails-v5.2.x' do | ||
gem 'rails', '~> 5.2.0' | ||
gem 'minitest' | ||
end | ||
|
||
appraise 'rails_v6.0.x' do | ||
gem 'rails', '~> 6.0.0' | ||
gem 'minitest' | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.