Skip to content

Commit dba6dab

Browse files
committed
Improve GA config
1 parent e939ba8 commit dba6dab

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

.github/workflows/ci.yml

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -94,25 +94,24 @@ jobs:
9494
- name: Setup Ruby cache
9595
uses: actions/cache@v2
9696
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') }}
9999
restore-keys: |
100-
${{ runner.os }}-gems-${{ matrix.ruby }}-${{ matrix.rails }}-
100+
${{ runner.os }}-gems-${{ matrix.ruby }}-${{ matrix.rails }}-${{ matrix.adapter }}-
101101
102102
- name: Bundle
103103
env:
104104
RAILS_VERSION: ${{ matrix.rails }}
105105
DB_ADAPTER: ${{ matrix.adapter }}
106+
BUNDLE_GEMFILE: gemfiles/${{ matrix.rails }}.gemfile
106107
run: |
107-
export BUNDLE_GEMFILE="${GITHUB_WORKSPACE}/gemfiles/${RAILS_VERSION}.gemfile"
108108
gem install bundler
109-
# bundle config path "${GITHUB_WORKSPACE}/vendor/bundle"
109+
bundle config path vendor/bundle
110110
bundle install --jobs 4 --retry 3
111111
112112
- name: RSpec
113113
env:
114114
RAILS_VERSION: ${{ matrix.rails }}
115115
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

0 commit comments

Comments
 (0)