Skip to content

Add more versions

Add more versions #3

Workflow file for this run

name: Run RSpec tests
on: [push]
jobs:
run-rspec-tests:
strategy:
matrix:
version: ['7.1', '7.0', '6.1', '6.0']
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.2'
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
- name: Remove default activerecord Gem
run: bundle remove activerecord
- name: Add specific version of activerecord Gem
run: bundle add activerecord --version "~> ${{ matrix.version }}" --group "development,test"
- name: Run tests
run: bundle exec rspec