Update CI matrix to make sure recent Ruby and ActiveRecord versions are supported #60
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: CI | |
on: [ push, pull_request_target ] | |
concurrency: | |
group: ci-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
tests: | |
# Continue on error so that we see the results of all tests in the matrix. | |
continue-on-error: true | |
strategy: | |
matrix: | |
ruby: [ "3.4", "3.3", "3.2", "3.1" ] | |
rails: [ "8.0", "7.1", "7.0", "6.1" ] | |
exclude: | |
# Rails 8 needs Ruby 3.2 or higher | |
- { ruby: "3.1", rails: "8.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 |