Use bundler-cache: true

This commit is contained in:
Takashi Kokubun 2022-10-25 00:34:10 -07:00
parent fdeee8828e
commit 40fd13d36c
No known key found for this signature in database
GPG Key ID: 6FFC433B12EE23DD
1 changed files with 2 additions and 8 deletions

View File

@ -25,16 +25,10 @@ jobs:
- truffleruby-head
steps:
- uses: actions/checkout@v2
- run: sudo apt-get update && sudo apt-get install -y nodejs libxslt-dev # nodejs for execjs, libxslt for TruffleRuby nokogiri
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
- uses: actions/cache@v2
with:
path: vendor/bundle
key: ${{ runner.os }}-${{ matrix.ruby }}-gems-${{ hashFiles('**/Gemfile.lock') }}
restore-keys: ${{ runner.os }}-gems-
- run: sudo apt-get update && sudo apt-get install -y nodejs libxslt-dev # nodejs for execjs, libxslt for TruffleRuby nokogiri
- name: bundle install
run: bundle config path vendor/bundle && bundle install -j$(nproc) --retry 3
bundler-cache: true
- run: bundle exec rake test