mirror of
https://github.com/actions/cache.git
synced 2024-12-27 01:40:36 +01:00
Add end-to-end test
This commit is contained in:
parent
3f0646840e
commit
afe0db9f64
1 changed files with 23 additions and 0 deletions
23
.github/workflows/workflow.yml
vendored
23
.github/workflows/workflow.yml
vendored
|
@ -35,6 +35,29 @@ jobs:
|
|||
run: npm run test
|
||||
|
||||
# End to end save and restore
|
||||
test-dont-save:
|
||||
strategy:
|
||||
matrix:
|
||||
os: [ubuntu-latest, windows-latest, macOS-latest]
|
||||
fail-fast: false
|
||||
runs-on: ${{ matrix.os }}
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
- name: Generate files in working directory
|
||||
shell: bash
|
||||
run: __tests__/create-cache-files.sh ${{ runner.os }} test-cache
|
||||
- name: Generate files outside working directory
|
||||
shell: bash
|
||||
run: __tests__/create-cache-files.sh ${{ runner.os }} ~/test-cache
|
||||
- name: Save cache
|
||||
uses: ./
|
||||
with:
|
||||
key: test-${{ runner.os }}-${{ github.run_id }}
|
||||
path: |
|
||||
test-cache
|
||||
~/test-cache
|
||||
save: ${{ matrix.os == 'ubuntu-latest' }}
|
||||
test-save:
|
||||
strategy:
|
||||
matrix:
|
||||
|
|
Loading…
Reference in a new issue