Skip to content

Commit 43ab140

Browse files
authored
Merge pull request #912 from cucumber/simplify-github-actions
Use ruby-setup's native caching
2 parents 9143d04 + 51418aa commit 43ab140

File tree

1 file changed

+1
-13
lines changed

1 file changed

+1
-13
lines changed

.github/workflows/ruby.yml

+1-13
Original file line numberDiff line numberDiff line change
@@ -40,19 +40,7 @@ jobs:
4040
uses: ruby/setup-ruby@v1
4141
with:
4242
ruby-version: ${{ matrix.ruby }}
43-
- uses: actions/cache@v3
44-
with:
45-
# NOTE: Bundler expands the path relative to the gemfile, not the
46-
# current directory.
47-
path: ./gemfiles/vendor/bundle
48-
key: bundled-gems-${{ runner.os }}-ruby-${{ matrix.ruby }}-${{ matrix.appraisal }}-${{ hashFiles(env.BUNDLE_GEMFILE, '*.gemspec') }}
49-
restore-keys: |
50-
bundled-gems-${{ runner.os }}-ruby-${{ matrix.ruby }}-${{ matrix.appraisal }}-
51-
bundled-gems-${{ runner.os }}-ruby-${{ matrix.ruby }}-
52-
- name: Install gems
53-
run: |
54-
bundle config path vendor/bundle
55-
bundle install --jobs 4
43+
bundler-cache: true
5644
- name: Run specs
5745
run: bundle exec rake spec
5846
- name: Run cukes

0 commit comments

Comments
 (0)