From f914804e13631e12afd7b60112f627d5d3459dbe Mon Sep 17 00:00:00 2001 From: Matt Lewis Date: Tue, 6 Feb 2024 12:38:37 +0000 Subject: [PATCH] Add restore only test as well --- .github/workflows/test.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 146a737..a71c1f5 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -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