Add Rails 7.2 support #243
Workflow file for this run
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
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 |