mirror of https://github.com/actions/toolkit
Delete cache folders prior to restore in tests (#486)
* Delete cache folders prior to restore in tests * Update cache-tests.ymlpull/497/head^2
parent
66931ff481
commit
9e2d61e548
|
@ -58,6 +58,12 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
node -e "Promise.resolve(require('./packages/cache/lib/cache').saveCache(['test-cache','~/test-cache'],'test-${{ runner.os }}-${{ github.run_id }}'))"
|
node -e "Promise.resolve(require('./packages/cache/lib/cache').saveCache(['test-cache','~/test-cache'],'test-${{ runner.os }}-${{ github.run_id }}'))"
|
||||||
|
|
||||||
|
- name: Delete cache folders prior to restore
|
||||||
|
shell: bash
|
||||||
|
run: |
|
||||||
|
rm -rf test-cache
|
||||||
|
rm -rf ~/test-cache
|
||||||
|
|
||||||
- name: Restore cache using restoreCache()
|
- name: Restore cache using restoreCache()
|
||||||
run: |
|
run: |
|
||||||
node -e "Promise.resolve(require('./packages/cache/lib/cache').restoreCache(['test-cache','~/test-cache'],'test-${{ runner.os }}-${{ github.run_id }}'))"
|
node -e "Promise.resolve(require('./packages/cache/lib/cache').restoreCache(['test-cache','~/test-cache'],'test-${{ runner.os }}-${{ github.run_id }}'))"
|
||||||
|
|
Loading…
Reference in New Issue