|
@@ -12,15 +12,17 @@ jobs:
|
|
|
steps:
|
|
steps:
|
|
|
- uses: actions/checkout@v1
|
|
- uses: actions/checkout@v1
|
|
|
- uses: actions/cache@v1
|
|
- uses: actions/cache@v1
|
|
|
|
|
+ id: bundler-cache
|
|
|
with:
|
|
with:
|
|
|
path: vendor/bundle
|
|
path: vendor/bundle
|
|
|
key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }}
|
|
key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }}
|
|
|
restore-keys: |
|
|
restore-keys: |
|
|
|
${{ runner.os }}-gems-
|
|
${{ runner.os }}-gems-
|
|
|
|
|
+ - name: Bundle setup
|
|
|
|
|
+ run: bundle config path vendor/bundle
|
|
|
- name: Bundle install
|
|
- name: Bundle install
|
|
|
- run: |
|
|
|
|
|
- bundle config path vendor/bundle
|
|
|
|
|
- bundle install --jobs 4 --retry 3
|
|
|
|
|
|
|
+ if: steps.bundler-cache.outputs.cache-hit != 'true'
|
|
|
|
|
+ run: bundle install --jobs 4 --retry 3
|
|
|
- name: Run tests
|
|
- name: Run tests
|
|
|
env:
|
|
env:
|
|
|
DESTINATION: platform=${{ matrix.destination }}
|
|
DESTINATION: platform=${{ matrix.destination }}
|