Skip to content

Commit

Permalink
Merge pull request #912 from cucumber/simplify-github-actions
Browse files Browse the repository at this point in the history
Use ruby-setup's native caching
  • Loading branch information
mvz authored Oct 13, 2023
2 parents 9143d04 + 51418aa commit 43ab140
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions .github/workflows/ruby.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,19 +40,7 @@ jobs:
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
- uses: actions/cache@v3
with:
# NOTE: Bundler expands the path relative to the gemfile, not the
# current directory.
path: ./gemfiles/vendor/bundle
key: bundled-gems-${{ runner.os }}-ruby-${{ matrix.ruby }}-${{ matrix.appraisal }}-${{ hashFiles(env.BUNDLE_GEMFILE, '*.gemspec') }}
restore-keys: |
bundled-gems-${{ runner.os }}-ruby-${{ matrix.ruby }}-${{ matrix.appraisal }}-
bundled-gems-${{ runner.os }}-ruby-${{ matrix.ruby }}-
- name: Install gems
run: |
bundle config path vendor/bundle
bundle install --jobs 4
bundler-cache: true
- name: Run specs
run: bundle exec rake spec
- name: Run cukes
Expand Down

0 comments on commit 43ab140

Please sign in to comment.