Skip to content

Add Rails 7.1 to the test matrix #46

Add Rails 7.1 to the test matrix

Add Rails 7.1 to the test matrix #46

Workflow file for this run

name: CI
on: [ push, pull_request_target ]
concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true
jobs:
tests:
strategy:
fail-fast: false
matrix:
ruby: [ "3.3", "3.2", "3.1", "3.0" ]
rails: [ "7.1", "7.0", "6.1"]
include:
- { ruby: "2.7", rails: "6.0" }
- { ruby: "2.7", rails: "5.2" }
- { ruby: "2.7", rails: "5.1" }
- { ruby: "2.7", rails: "5.0" }
name: "tests (Ruby: ${{ matrix.ruby }}, Rails: ${{ matrix.rails }})"
runs-on: ubuntu-latest
env:
MYSQL_HOST: '127.0.0.1'
BUNDLE_GEMFILE: test/gemfiles/rails-${{ matrix.rails }}.gemfile
services:
mysql:
image: mysql:8
ports:
- "3306:3306"
env:
MYSQL_ALLOW_EMPTY_PASSWORD: "yes"
options: --health-cmd "mysqladmin ping" --health-interval 5s --health-timeout 5s --health-retries 5
steps:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
bundler-cache: true
ruby-version: ${{ matrix.ruby }}
- run: bundle exec rake