Skip to content

CI: Add Rails axis to test matrix #274

CI: Add Rails axis to test matrix

CI: Add Rails axis to test matrix #274

Workflow file for this run

name: CI
on:
push:
branches:
- master
pull_request:
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
ruby:
- "3.0"
- "3.1"
- "3.2"
- "3.3"
gemfile:
- Gemfile
- gemfiles/Gemfile-rails-main
- gemfiles/Gemfile-rails-7-0
- gemfiles/Gemfile-rails-6-1
exclude:
- gemfile: gemfiles/Gemfile-rails-main
ruby: "3.0"
env:
BUNDLE_GEMFILE: ${{ matrix.gemfile }}
steps:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- name: migration
run: |
bin/rails db:create RAILS_ENV=test
bin/rails db:migrate RAILS_ENV=test
- name: test
run: bin/rails test
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}