Skip to content

Commit

Permalink
Use bundler-cache to speed up CI
Browse files Browse the repository at this point in the history
See puppetlabs/puppet@86820ee

This intentionally doesn't use bundler-cache for the mend workflow, since we
want the latest versions of all of our dependencies that still satisfy our
constraints.

This doesn't update the acceptance_tests workflow because it does a bundle
install for both the top-level Gemfile and the one in the acceptance dir.
  • Loading branch information
joshcooper committed Jun 28, 2024
1 parent 06c37a2 commit f18ce34
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/checks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@ jobs:
uses: ruby/setup-ruby@v1
with:
ruby-version: '2.7'
- run: bundle install --jobs 3 --retry 3
bundler-cache: true
- run: bundle exec rubocop --parallel

2 changes: 1 addition & 1 deletion .github/workflows/coverage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
uses: ruby/setup-ruby@v1
with:
ruby-version: '2.7'
- run: bundle install --jobs 3 --retry 3
bundler-cache: true
- run: bundle exec rake spec

- name: Publish code coverage
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/integration_tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ jobs:
- {os: windows-2019, ruby: '2.7'}
- {os: windows-2019, ruby: '3.2'} # with openssl 3
runs-on: ${{ matrix.cfg.os }}
env:
BUNDLE_SET: 'with integration'
steps:
- name: Checkout current PR
uses: actions/checkout@v4
Expand All @@ -32,7 +34,5 @@ jobs:
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.cfg.ruby }}
- run: gem update bundler
- run: bundle config set --local with integration
- run: bundle install --jobs 3 --retry 3
bundler-cache: true
- run: bundle exec rake spec_integration
6 changes: 2 additions & 4 deletions .github/workflows/unit_tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,7 @@ jobs:
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
- run: gem update bundler
- run: bundle install --jobs 3 --retry 3
bundler-cache: true
- run: bundle exec rake spec_random

windows_unit_tests:
Expand All @@ -53,6 +52,5 @@ jobs:
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
- run: gem update bundler
- run: bundle install --jobs 3 --retry 3
bundler-cache: true
- run: bundle exec rake spec_random

0 comments on commit f18ce34

Please sign in to comment.