Fix broken CI (#390) #114
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: | |
branches: [master] | |
pull_request: | |
jobs: | |
ci: | |
runs-on: ubuntu-latest | |
continue-on-error: ${{ endsWith(matrix.ruby, 'head') || matrix.gemfile == 'gemfiles/rails_edge.gemfile' }} | |
strategy: | |
matrix: | |
ruby: | |
# MRI | |
- head | |
- "2.7" | |
- "3.0" | |
- "3.1" | |
- "3.2" | |
# JRuby | |
- jruby-9.3 | |
- jruby-9.4 | |
# TruffleRuby | |
- truffleruby-23.0 | |
gemfile: | |
- Gemfile | |
- gemfiles/rails_edge.gemfile # 7.2.0.alpha | |
- gemfiles/rails_7.1.gemfile | |
- gemfiles/rails_7.0.gemfile | |
- gemfiles/rails_6.1.gemfile | |
- gemfiles/rails_6.0.gemfile | |
- gemfiles/rails_5.2.gemfile | |
# Include additional ruby/gemfile combinations: | |
include: | |
# NOTE(ivy): Rails 7 requires Ruby version >= 2.7 | |
- ruby: "2.6" | |
gemfile: Gemfile | |
- ruby: "2.6" | |
gemfile: gemfiles/rails_6.0.gemfile | |
- ruby: "2.6" | |
gemfile: gemfiles/rails_5.2.gemfile | |
exclude: | |
# NOTE(ivy): Rails 7 requires Ruby version >= 2.7 | |
- ruby: jruby-9.3 | |
gemfile: gemfiles/rails_edge.gemfile | |
- ruby: jruby-9.3 | |
gemfile: gemfiles/rails_7.1.gemfile | |
- ruby: jruby-9.3 | |
gemfile: gemfiles/rails_7.0.gemfile | |
- ruby: jruby-9.2 | |
gemfile: gemfiles/rails_edge.gemfile | |
- ruby: jruby-9.2 | |
gemfile: gemfiles/rails_7.1.gemfile | |
- ruby: jruby-9.2 | |
gemfile: gemfiles/rails_7.0.gemfile | |
# NOTE: Rails edge requires Ruby version >= 3.1 | |
- ruby: "2.7" | |
gemfile: gemfiles/rails_edge.gemfile | |
- ruby: "3.0" | |
gemfile: gemfiles/rails_edge.gemfile | |
env: | |
BUNDLE_GEMFILE: ${{ github.workspace }}/${{ matrix.gemfile }} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: ${{ matrix.ruby }} | |
bundler-cache: true | |
- run: bundle exec rake | |
- run: bundle exec rubocop |