Skip to content

Commit

Permalink
Merge pull request #2736 from joshcooper/bundle-cache
Browse files Browse the repository at this point in the history
Use bundler-cache to speed up CI
  • Loading branch information
mhashizume authored Jun 28, 2024
2 parents 06c37a2 + f18ce34 commit 8dfaabf
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 8dfaabf

Please sign in to comment.