Skip to content

Merge pull request #40 from Coursemology/adi/upgrade-rails-8-1 #2

Merge pull request #40 from Coursemology/adi/upgrade-rails-8-1

Merge pull request #40 from Coursemology/adi/upgrade-rails-8-1 #2

Workflow file for this run

# Runs the RSpec suite against the supported Ruby x Rails matrix.
# See https://github.com/marketplace/actions/setup-ruby-jruby-and-truffleruby
name: Ruby
on:
push:
branches: ['master']
pull_request:
branches: ['master']
schedule:
- cron: '0 0 * * 0'
workflow_dispatch:
permissions:
contents: read
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
ruby-version: ['3.1', '3.2', '3.3', '3.4']
rails: ['7.2', '8.0', '8.1']
exclude:
# Rails 8 requires Ruby >= 3.2.
- ruby-version: '3.1'
rails: '8.0'
- ruby-version: '3.1'
rails: '8.1'
env:
BUNDLE_GEMFILE: ${{ github.workspace }}/gemfiles/rails_${{ matrix.rails }}.gemfile
steps:
- uses: actions/checkout@v4
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
- name: Run tests
run: bundle exec rake