Skip to content

Commit df2396c

Browse files
upgrade rails version logic for ci
1 parent d395eb3 commit df2396c

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

.github/workflows/push.yml

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,11 @@ jobs:
2323
uses: ruby/setup-ruby@v1
2424
with:
2525
ruby-version: ${{ matrix.ruby }}
26-
27-
- name: Install gems
26+
bundler-cache: true
2827
env:
29-
MATRIX_RAILS_VERSION: ${{ matrix.rails }}
30-
run: |
31-
export BUNDLE_GEMFILE="${GITHUB_WORKSPACE}/gemfiles/rails_${MATRIX_RAILS_VERSION}.gemfile"
32-
gem install bundler
33-
bundle install --jobs 4 --retry 3
28+
RAILS_VERSION: ${{ matrix.rails }}
3429

3530
- name: Run tests
3631
run: bundle exec rake
32+
env:
33+
RAILS_VERSION: ${{ matrix.rails }}

Gemfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,6 @@ source "https://rubygems.org"
22

33
# Specify your gem's dependencies in inertia-rails.gemspec
44
gemspec
5+
6+
version = ENV["RAILS_VERSION"] || "7.1"
7+
gem "rails", "~> #{version}.0"

0 commit comments

Comments
 (0)