Skip to content

Commit bb70391

Browse files
Updates workflow to run against rails versions (#214)
1 parent 5c9f412 commit bb70391

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

.github/workflows/verify.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,9 @@ jobs:
5050
- '3.0'
5151
- '3.1'
5252
- '3.2'
53+
rails:
54+
- '~> 7.0.0'
55+
- '~> 7.1.0'
5356
os:
5457
- ubuntu-20.04
5558
- ubuntu-latest
@@ -60,7 +63,7 @@ jobs:
6063
env:
6164
RAILS_ENV: test
6265

63-
name: ${{ matrix.os }} - Ruby ${{ matrix.ruby }}
66+
name: ${{ matrix.os }} - Ruby ${{ matrix.ruby }} - Rails ${{ matrix.rails }}
6467
steps:
6568
- name: Install system dependencies
6669
run: sudo apt-get install libpcap-dev graphviz
@@ -74,6 +77,12 @@ jobs:
7477
ruby-version: ${{ matrix.ruby }}
7578
bundler-cache: true
7679

80+
- name: Update Rails version
81+
run: |
82+
ruby -pi.bak -e "gsub(/gem ['\"]rails['\"],\s*['\"].+['\"]?/, \"gem 'rails', '${{ matrix.rails }}'\")" Gemfile
83+
bundle update
84+
bundle install
85+
7786
- name: Test
7887
run: |
7988
cp spec/dummy/config/database.yml.github_actions spec/dummy/config/database.yml

0 commit comments

Comments
 (0)