Skip to content

Commit

Permalink
Do not depend on setup-ruby cache to make robust CI (#200)
Browse files Browse the repository at this point in the history
* Do not depend on setup-ruby cache to make robust CI

* Add missing step
  • Loading branch information
kachick authored May 31, 2024
1 parent 535b2d0 commit c803057
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/spec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
BUNDLE_GEMFILE: ${{ github.workspace }}/${{ matrix.gemfile }}
steps:
- name: Install libyaml
if: startsWith(matrix.os, 'ubuntu-') && matrix.ruby == '3.2'
if: startsWith(matrix.os, 'ubuntu-')
run: sudo apt-get install --no-install-recommends --assume-yes libyaml-dev
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
Expand All @@ -41,7 +41,10 @@ jobs:
BUNDLE_WITHOUT: development
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
# Enabling is the recommended way, but it cannot detect runner changes in early stage.
# So disable it is better for test job, do not mind in other jobs
bundler-cache: false # runs 'bundle install' and caches installed gems automatically
- run: bundle install
- run: bundle exec rake spec
env:
BUNDLE_WITHOUT: development

0 comments on commit c803057

Please sign in to comment.