File tree Expand file tree Collapse file tree 1 file changed +7
-8
lines changed Expand file tree Collapse file tree 1 file changed +7
-8
lines changed Original file line number Diff line number Diff line change @@ -94,25 +94,24 @@ jobs:
94
94
- name : Setup Ruby cache
95
95
uses : actions/cache@v2
96
96
with :
97
- path : " ${GITHUB_WORKSPACE}/ vendor/bundle"
98
- key : ${{ runner.os }}-gems-${{ matrix.ruby }}-${{ matrix.rails }}-${{ hashFiles('**/Gemfile.lock') }}
97
+ path : vendor/bundle
98
+ key : ${{ runner.os }}-gems-${{ matrix.ruby }}-${{ matrix.rails }}-${{ matrix.adapter }}-${{ hashFiles('**/Gemfile.lock') }}
99
99
restore-keys : |
100
- ${{ runner.os }}-gems-${{ matrix.ruby }}-${{ matrix.rails }}-
100
+ ${{ runner.os }}-gems-${{ matrix.ruby }}-${{ matrix.rails }}-${{ matrix.adapter }}-
101
101
102
102
- name : Bundle
103
103
env :
104
104
RAILS_VERSION : ${{ matrix.rails }}
105
105
DB_ADAPTER : ${{ matrix.adapter }}
106
+ BUNDLE_GEMFILE : gemfiles/${{ matrix.rails }}.gemfile
106
107
run : |
107
- export BUNDLE_GEMFILE="${GITHUB_WORKSPACE}/gemfiles/${RAILS_VERSION}.gemfile"
108
108
gem install bundler
109
- # bundle config path "${GITHUB_WORKSPACE}/ vendor/bundle"
109
+ bundle config path vendor/bundle
110
110
bundle install --jobs 4 --retry 3
111
111
112
112
- name : RSpec
113
113
env :
114
114
RAILS_VERSION : ${{ matrix.rails }}
115
115
DB_ADAPTER : ${{ matrix.adapter }}
116
- run : |
117
- export BUNDLE_GEMFILE="${GITHUB_WORKSPACE}/gemfiles/${RAILS_VERSION}.gemfile"
118
- bundle exec rake
116
+ BUNDLE_GEMFILE : gemfiles/${{ matrix.rails }}.gemfile
117
+ run : bin/rake
You can’t perform that action at this time.
0 commit comments