Skip to content

Merge pull request #291 from y-yagi/ci-against-rails71 #119

Merge pull request #291 from y-yagi/ci-against-rails71

Merge pull request #291 from y-yagi/ci-against-rails71 #119

Workflow file for this run

name: Ruby
concurrency:
group: "${{github.workflow}}-${{github.ref}}"
cancel-in-progress: true
on:
push:
branches:
- master
tags:
- v*.*.*
pull_request:
types: [opened, synchronize]
branches:
- '*'
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
# | rails | rails EOL | ruby EOL | min ruby| max |
# | ----- | ---------+| --------+| --------|---- |
# | 5.0 | 6/2020 | 3/2020 | 2.2 | 2.4 |
# | 5.1 | 6/2021 | 3/2021 | 2.2 | 2.5 |
# | 5.2 | 6/2022 | 3/2022 | 2.2 | 2.6 |
# | 6.0 | 6/2023? | 3/3023?| 2.5 | 2.7 |
# | 6.1 | | | 2.5 | |
# | 7.0 | | | 2.7 | |
# | 7.1 | | | 2.7 | |
ruby: ['3.0', '3.1', '3.2']
gemfile: ['gemfiles/rails_6.1.gemfile', 'gemfiles/rails_7.0.gemfile', 'gemfiles/rails_7.1.gemfile']
include:
- ruby: '2.4'
gemfile: 'gemfiles/rails_5.0.gemfile'
- ruby: '2.5'
gemfile: 'gemfiles/rails_5.1.gemfile'
- ruby: '2.6'
gemfile: 'gemfiles/rails_5.2.gemfile'
- ruby: '2.7'
gemfile: 'gemfiles/rails_6.0.gemfile'
env:
BUNDLE_GEMFILE: ${{ matrix.gemfile }}
name: Ruby ${{ matrix.ruby }}, ${{ matrix.gemfile }}
steps:
- uses: actions/checkout@v3
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- name: Run tests
run: bundle exec rake spec