Add more versions #3
Workflow file for this run
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: 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 |