Simplify CI matrix (#63) #44
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: true | |
strategy: | |
matrix: | |
ruby: [ "3.3", "3.2", "3.1", "3.0" ] | |
rails: [ "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 |