Skip to content

Commit 8dfaabf

Browse files
authored
Merge pull request #2736 from joshcooper/bundle-cache
Use bundler-cache to speed up CI
2 parents 06c37a2 + f18ce34 commit 8dfaabf

File tree

4 files changed

+7
-9
lines changed

4 files changed

+7
-9
lines changed

.github/workflows/checks.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,6 @@ jobs:
2121
uses: ruby/setup-ruby@v1
2222
with:
2323
ruby-version: '2.7'
24-
- run: bundle install --jobs 3 --retry 3
24+
bundler-cache: true
2525
- run: bundle exec rubocop --parallel
2626

.github/workflows/coverage.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
uses: ruby/setup-ruby@v1
2525
with:
2626
ruby-version: '2.7'
27-
- run: bundle install --jobs 3 --retry 3
27+
bundler-cache: true
2828
- run: bundle exec rake spec
2929

3030
- name: Publish code coverage

.github/workflows/integration_tests.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ jobs:
2424
- {os: windows-2019, ruby: '2.7'}
2525
- {os: windows-2019, ruby: '3.2'} # with openssl 3
2626
runs-on: ${{ matrix.cfg.os }}
27+
env:
28+
BUNDLE_SET: 'with integration'
2729
steps:
2830
- name: Checkout current PR
2931
uses: actions/checkout@v4
@@ -32,7 +34,5 @@ jobs:
3234
uses: ruby/setup-ruby@v1
3335
with:
3436
ruby-version: ${{ matrix.cfg.ruby }}
35-
- run: gem update bundler
36-
- run: bundle config set --local with integration
37-
- run: bundle install --jobs 3 --retry 3
37+
bundler-cache: true
3838
- run: bundle exec rake spec_integration

.github/workflows/unit_tests.yaml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,7 @@ jobs:
3333
uses: ruby/setup-ruby@v1
3434
with:
3535
ruby-version: ${{ matrix.ruby }}
36-
- run: gem update bundler
37-
- run: bundle install --jobs 3 --retry 3
36+
bundler-cache: true
3837
- run: bundle exec rake spec_random
3938

4039
windows_unit_tests:
@@ -53,6 +52,5 @@ jobs:
5352
uses: ruby/setup-ruby@v1
5453
with:
5554
ruby-version: ${{ matrix.ruby }}
56-
- run: gem update bundler
57-
- run: bundle install --jobs 3 --retry 3
55+
bundler-cache: true
5856
- run: bundle exec rake spec_random

0 commit comments

Comments
 (0)