forked from venuu/jsonapi-authorization
-
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.
Update test config to work on Rails 6.0 and 6.1
This is purely for Centah. We use github actions so it adds a workflow for that instead of using travis I don't know what phare is but that's gone. I kept using the appraisals gem.
- Loading branch information
Showing
17 changed files
with
73 additions
and
153 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 |
---|---|---|
@@ -0,0 +1,34 @@ | ||
name: CI | ||
|
||
on: | ||
pull_request: | ||
branches: ['**'] | ||
|
||
jobs: | ||
tests: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
ruby: | ||
- 2.7.5 | ||
- 3.1.6 | ||
rails: | ||
- 6.0 | ||
- 6.1 | ||
env: | ||
BUNDLE_GEMFILE: ${{ github.workspace }}/gemfiles/rails_${{ matrix.rails }}.gemfile | ||
name: Ruby ${{ matrix.ruby }} Rails ${{ matrix.rails }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set up Ruby | ||
uses: ruby/setup-ruby@v1 | ||
with: | ||
bundler: default | ||
bundler-cache: true | ||
ruby-version: ${{ matrix.ruby }} | ||
rubygems: latest | ||
- name: Install dependencies | ||
run: "bundle install --jobs 4 --retry 3" | ||
- name: Run tests | ||
run: "bundle exec rspec" |
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 |
---|---|---|
|
@@ -10,5 +10,7 @@ | |
/spec/dummy/tmp/ | ||
*.orig | ||
.ruby-version | ||
/gemfiles/*.gemfile.lock | ||
tags | ||
|
||
*.sqlite3 | ||
*.log |
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,47 +1,25 @@ | ||
appraise 'rails-4-2 pundit-1' do | ||
gem 'rails', '4.2.0' | ||
gem 'jsonapi-resources', '~> 0.9' | ||
gem 'pundit', '~> 1.0' | ||
end | ||
appraise 'rails-6-pundit-2' do | ||
# Rails gems | ||
gem 'rails', '~> 6.0.6', '>= 6.0.6.1' | ||
gem 'puma', '~> 4.1' | ||
gem 'bootsnap', '>= 1.4.2', require: false | ||
|
||
appraise 'rails-5-0 pundit-1' do | ||
gem 'rails', '5.0.0' | ||
gem 'jsonapi-resources', '~> 0.9' | ||
gem 'pundit', '~> 1.0' | ||
end | ||
# Fix for Rails not working well with Psych | ||
gem 'psych', '< 4' | ||
|
||
appraise 'rails-5-1 pundit-1' do | ||
gem "rails", "5.1.0" | ||
gem 'jsonapi-resources', '~> 0.9' | ||
gem 'pundit', '~> 1.0' | ||
end | ||
|
||
appraise 'rails-5-2 pundit-1' do | ||
gem 'rails', '5.2.0' | ||
gem 'jsonapi-resources', '~> 0.9' | ||
gem 'pundit', '~> 1.0' | ||
end | ||
|
||
appraise 'rails-4-2 pundit-2' do | ||
gem 'rails', '4.2.0' | ||
gem 'jsonapi-resources', '~> 0.9' | ||
gem 'pundit', '~> 2.0' | ||
end | ||
|
||
appraise 'rails-5-0 pundit-2' do | ||
gem 'rails', '5.0.0' | ||
# jsonapi-authorization gems | ||
gem 'jsonapi-resources', '~> 0.9' | ||
gem 'pundit', '~> 2.0' | ||
end | ||
|
||
appraise 'rails-5-1 pundit-2' do | ||
gem 'rails', '5.1.0' | ||
gem 'jsonapi-resources', '~> 0.9' | ||
gem 'pundit', '~> 2.0' | ||
end | ||
appraise 'rails-6.1-pundit-2' do | ||
# Rails gems | ||
gem 'rails', '~> 6.1.7', '>= 6.1.7.8' | ||
gem 'puma', '~> 5.0' | ||
gem 'sass-rails', '>= 6' | ||
gem 'bcrypt', '~> 3.1.7' | ||
|
||
appraise 'rails-5-2 pundit-2' do | ||
gem 'rails', '5.2.0' | ||
# jsonapi-authorization gems | ||
gem 'jsonapi-resources', '~> 0.9' | ||
gem 'pundit', '~> 2.0' | ||
end |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
7 changes: 4 additions & 3 deletions
7
gemfiles/rails_4_2_pundit_2.gemfile → gemfiles/rails_6.1.gemfile
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
source "https://rubygems.org" | ||
|
||
gem "rails", "~> 6.0.6", ">= 6.0.6.1" | ||
gem "puma", "~> 4.1" | ||
gem "bootsnap", ">= 1.4.2", require: false | ||
gem "psych", "< 4" | ||
gem "jsonapi-resources", "~> 0.9" | ||
gem "pundit", "~> 2.0" | ||
|
||
gemspec path: "../" |
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