Use bundler-cache: true
This commit is contained in:
parent
fdeee8828e
commit
40fd13d36c
|
@ -25,16 +25,10 @@ jobs:
|
||||||
- truffleruby-head
|
- truffleruby-head
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- 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
|
- name: Set up Ruby
|
||||||
uses: ruby/setup-ruby@v1
|
uses: ruby/setup-ruby@v1
|
||||||
with:
|
with:
|
||||||
ruby-version: ${{ matrix.ruby }}
|
ruby-version: ${{ matrix.ruby }}
|
||||||
- uses: actions/cache@v2
|
bundler-cache: true
|
||||||
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
|
|
||||||
- run: bundle exec rake test
|
- run: bundle exec rake test
|
||||||
|
|
Loading…
Reference in New Issue