Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use bundler-cache to speed up CI #2736

Merged
merged 1 commit into from
Jun 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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