Skip to content

CI fixes

CI fixes #10

Workflow file for this run

name: CI
on:
push:
branches: [master, main]
pull_request:
branches: [master, main]
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
ruby: ['2.7', '3.3']
rails_version:
- '5.2.8.1'
- '6.1.7.8'
- '7.2.2'
- '8.0.2'
exclude:
# Rails 7+ requires Ruby 3.1+
- ruby: '2.7'
rails_version: '7.2.2'
- ruby: '2.7'
rails_version: '8.0.2'
# Rails 5.2 ActionDispatch::Static is incompatible with Ruby 3 (wrong number of arguments)
- ruby: '3.3'
rails_version: '5.2.8.1'
env:
RAILS_VERSION: ${{ matrix.rails_version }}
steps:
- uses: actions/checkout@v4
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- name: Prepare test database
run: |
cd test/dummy && bundle exec rake db:test:prepare 2>/dev/null || true
- name: Run tests
run: bin/test