chore(ci): cache dependencies (#8168)

Merge pull request 8168
This commit is contained in:
Frank Taillandier 2020-05-10 00:25:33 +02:00 committed by GitHub
parent 8c77d2ece6
commit 5375a2747e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 12 additions and 3 deletions

View File

@ -27,16 +27,25 @@ jobs:
- uses: actions/checkout@v2
with:
fetch-depth: 5
- name: Set up Ruby 2.6
- name: Ruby
uses: actions/setup-ruby@v1
with:
ruby-version: 2.6.x
ruby-version: ">= 2.5"
- name: Cache dependencies
uses: actions/cache@v1
with:
path: vendor/bundle
key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }}
restore-keys: |
${{ runner.os }}-gems-
- name: 'Update Rubygems'
run: 'gem update --system --no-document'
- name: 'Update Bundler'
run: 'gem update bundler --no-document'
- name: Set up bundle
run: bundle install --jobs 4 --retry 3
run: |
bundle config path vendor/bundle
bundle install --jobs 4 --retry 3
- name: Run Test Suite
run: bash script/cibuild
env: