File tree Expand file tree Collapse file tree 1 file changed +12
-4
lines changed
Expand file tree Collapse file tree 1 file changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -50,18 +50,26 @@ jobs:
5050 uses : ruby/setup-ruby@v1
5151 with :
5252 ruby-version : ${{ matrix.ruby }}
53- bundler-cache : true
54- # unique cache per rails version so 7.2 / 8.0 don’t clobber 7.1
53+
54+ # Run the automatic bundle-install only on 7.1.
55+ # For 7.2 / 8.0 it just sets up Ruby *and* restores a cache layer
56+ # that we’ll reuse in the later manual install.
57+ bundler-cache : ${{ matrix.rails == '7.1.5.1' }}
58+
59+ # One cache bucket per Rails version so they don’t clobber each other.
5560 cache-version : rails-${{ matrix.rails }}
5661
5762 # Updating Rails can legitimately blow up on the experimental tracks,
5863 # so we allow that *step* to error out without failing the job.
59- - name : Update Rails
60- id : update
64+ - name : Update Rails & install gems
6165 if : matrix.rails != '7.1.5.1'
66+ id : update
6267 run : |
68+ # turn off deployment mode
6369 bundle config set deployment false
70+ # conservative upgrade to the target rails version
6471 bundle update rails --conservative
72+ # install missing gems (writes bin/rspec, etc)
6573 bundle install --jobs 4 --retry 3
6674 continue-on-error : ${{ matrix.allowed_failure }}
6775
You can’t perform that action at this time.
0 commit comments