1
0
Fork 0
mirror of https://code.forgejo.org/actions/cache.git synced 2024-12-01 08:09:15 +01:00

Add end-to-end test

This commit is contained in:
Enrico Minack 2024-11-04 18:35:25 +01:00
parent 3f0646840e
commit afe0db9f64

View file

@ -35,6 +35,29 @@ jobs:
run: npm run test run: npm run test
# End to end save and restore # 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: test-save:
strategy: strategy:
matrix: matrix: