Merge pull request #7480 from Bo98/cache-fix
workflows/tests: fix gem caching
This commit is contained in:
commit
79ac5c5a7d
7
.github/workflows/tests.yml
vendored
7
.github/workflows/tests.yml
vendored
@ -15,6 +15,7 @@ jobs:
|
|||||||
os: [ubuntu-latest, macOS-latest]
|
os: [ubuntu-latest, macOS-latest]
|
||||||
steps:
|
steps:
|
||||||
- name: Set up Homebrew
|
- name: Set up Homebrew
|
||||||
|
id: set-up-homebrew
|
||||||
run: |
|
run: |
|
||||||
if which brew &>/dev/null; then
|
if which brew &>/dev/null; then
|
||||||
HOMEBREW_REPOSITORY="$(brew --repo)"
|
HOMEBREW_REPOSITORY="$(brew --repo)"
|
||||||
@ -76,10 +77,10 @@ jobs:
|
|||||||
id: cache
|
id: cache
|
||||||
uses: actions/cache@v1
|
uses: actions/cache@v1
|
||||||
with:
|
with:
|
||||||
path: Library/Homebrew/vendor/bundle/
|
path: Library/Homebrew/vendor/bundle/ruby/
|
||||||
key: ${{ runner.os }}-gems-${{ steps.set-up-homebrew.outputs.gems-hash }}
|
key: ${{ runner.os }}-rubygems-${{ steps.set-up-homebrew.outputs.gems-hash }}
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
${{ runner.os }}-gems-
|
${{ runner.os }}-rubygems-
|
||||||
|
|
||||||
- name: Install Bundler RubyGems
|
- name: Install Bundler RubyGems
|
||||||
if: steps.cache.outputs.cache-hit != 'true'
|
if: steps.cache.outputs.cache-hit != 'true'
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user