Merge pull request #29 from talkable/rails-8.0 #20
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: CI | |
on: [push, pull_request] | |
jobs: | |
test: | |
strategy: | |
fail-fast: false | |
matrix: | |
ruby: ['3.0', '3.1', '3.2', '3.3'] | |
gemfile: | |
- activemodel_6_1 | |
- activemodel_7_0 | |
- activemodel_7_1 | |
- activemodel_7_2 | |
- activemodel_8_0 | |
exclude: | |
# Rails 7.2 requires Ruby >= 3.1.0 | |
- ruby: '3.0' | |
gemfile: 'activemodel_7_2' | |
# Rails 8.0 requires Ruby >= 3.2.0 | |
- ruby: '3.0' | |
gemfile: 'activemodel_8_0' | |
- ruby: '3.1' | |
gemfile: 'activemodel_8_0' | |
name: Ruby ${{ matrix.ruby }}, ${{ matrix.gemfile }} | |
runs-on: ubuntu-latest | |
env: | |
BUNDLE_GEMFILE: gemfiles/${{ matrix.gemfile }}.gemfile | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: ${{ matrix.ruby }} | |
bundler-cache: true | |
- run: bundle exec rake |