Skip to content

Commit

Permalink
Add restore only test as well
Browse files Browse the repository at this point in the history
  • Loading branch information
mattlewis92 authored and jackieli-tes committed Feb 9, 2024
1 parent 6e90fee commit f914804
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -169,3 +169,32 @@ jobs:
path: |
test-cache
~/test-cache
test-restore-only:
needs: test-save-only
strategy:
matrix:
os: [ ubuntu-latest, windows-latest, macOS-latest ]
fail-fast: false
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Restore cache
uses: ./restore/
with:
endpoint: play.min.io
accessKey: "Q3AM3UQ867SPQQA43P2F"
secretKey: "zuf+tfteSlswRu7BJ86wekitnifILbZam1KYY3TG"
bucket: actions-cache
use-fallback: false
key: test-save-only-${{ runner.os }}-${{ github.run_id }}
path: |
test-cache
~/test-cache
- name: Verify cache files in working directory
shell: bash
run: src/verify-cache-files.sh ${{ runner.os }} test-cache
- name: Verify cache files outside working directory
shell: bash
run: src/verify-cache-files.sh ${{ runner.os }} ~/test-cache

0 comments on commit f914804

Please sign in to comment.