Skip to content

Commit

Permalink
Test against Rails 7.2
Browse files Browse the repository at this point in the history
  • Loading branch information
tagliala committed Jun 10, 2024
1 parent 41ebc98 commit 5dd5681
Show file tree
Hide file tree
Showing 7 changed files with 485 additions and 210 deletions.
22 changes: 13 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,23 +15,27 @@ jobs:
matrix:
ruby:
- "3.0"
- 3.1
- 3.2
- 3.3
deps:
- "3.1"
- "3.2"
- "3.3"
rails:
- rails_61
- rails_70
- rails_71
- rails_72
exclude:
- ruby: "3.0"
rails: rails_72
steps:
- uses: actions/checkout@v4
- name: Configure bundler (default)
run: |
echo "BUNDLE_GEMFILE=Gemfile" >> "$GITHUB_ENV"
if: matrix.deps == 'rails_71'
if: matrix.rails == 'rails_72'
- name: Configure bundler (alternative)
run: |
echo "BUNDLE_GEMFILE=gemfiles/${{ matrix.deps }}/Gemfile" >> "$GITHUB_ENV"
if: matrix.deps != 'rails_71'
echo "BUNDLE_GEMFILE=gemfiles/${{ matrix.rails }}/Gemfile" >> "$GITHUB_ENV"
if: matrix.rails != 'rails_72'
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
Expand All @@ -41,10 +45,10 @@ jobs:
COVERAGE: true
run: |
bundle exec rspec
mv coverage/coverage.xml coverage/coverage-ruby-${{ matrix.ruby }}-${{ matrix.deps }}.xml
mv coverage/coverage.xml coverage/coverage-ruby-${{ matrix.ruby }}-${{ matrix.rails }}.xml
- uses: actions/upload-artifact@v4
with:
name: coverage-ruby-${{ matrix.ruby }}-${{ matrix.deps }}
name: coverage-ruby-${{ matrix.ruby }}-${{ matrix.rails }}
path: coverage
if-no-files-found: error

Expand Down
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ group :rubocop do
end

group :rails do
gem 'rails', '~> 7.1.0'
gem 'rails', '~> 7.2.0.beta2'
gem 'rspec-rails'
gem 'combustion'
gem 'capybara'
Expand Down
Loading

0 comments on commit 5dd5681

Please sign in to comment.