Skip to content

Add Rails 7.2 support #243

Add Rails 7.2 support

Add Rails 7.2 support #243

Workflow file for this run

name: Tests
on:
push:
branches:
- "master"
pull_request:
jobs:
test:
name: Ruby ${{ matrix.versions.ruby }}, Rails ${{ matrix.versions.rails }}
runs-on: ubuntu-latest
strategy:
matrix:
versions:
- { ruby: "3.1", rails: "7.0.x" }
- { ruby: "3.2", rails: "7.0.x" }
- { ruby: "3.3", rails: "7.0.x" }
- { ruby: "3.1", rails: "7.1.x" }
- { ruby: "3.2", rails: "7.1.x" }
- { ruby: "3.3", rails: "7.1.x" }
- { ruby: "3.1", rails: "7.2.x" }
- { ruby: "3.2", rails: "7.2.x" }
- { ruby: "3.3", rails: "7.2.x" }
- { ruby: "3.2", rails: "head" }
- { ruby: "3.3", rails: "head" }
env:
BUNDLE_GEMFILE: gemfiles/rails_${{ matrix.versions.rails }}.gemfile
steps:
- uses: actions/checkout@v3
- name: Update gemspec to test in head version
if: matrix.versions.rails == 'head'
run: |
sed -i -e 's/, "< 8.0"//g' dekorator.gemspec
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.versions.ruby }}
bundler-cache: true
- name: Test with Rake
run: |
bundle exec rake test