From 227eeecfbe398952750dfe8b961de597911fc07d Mon Sep 17 00:00:00 2001 From: Andrew Marshall Date: Mon, 25 Nov 2024 08:46:04 +0000 Subject: [PATCH] add compression args to workflow cache test --- .github/workflows/cache-tests.yml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/cache-tests.yml b/.github/workflows/cache-tests.yml index dfe89f68ac..a2466a9cb1 100644 --- a/.github/workflows/cache-tests.yml +++ b/.github/workflows/cache-tests.yml @@ -16,6 +16,7 @@ jobs: strategy: matrix: runs-on: [ubuntu-latest, windows-latest, macOS-latest] + compression: ['auto', 'gzip', 'zstd', 'none'] fail-fast: false runs-on: ${{ matrix.runs-on }} @@ -55,8 +56,14 @@ jobs: # We're using node -e to call the functions directly available in the @actions/cache package - name: Save cache using saveCache() - run: | - node -e "Promise.resolve(require('./packages/cache/lib/cache').saveCache(['test-cache','~/test-cache'],'test-${{ runner.os }}-${{ github.run_id }}'))" + run: > + node -e "Promise.resolve(require('./packages/cache/lib/cache').saveCache( + ['test-cache','~/test-cache'], + 'test-${{ runner.os }}-${{ github.run_id }}', + undefined, + false, + ${{ matrix.compression }} + ))" - name: Delete cache folders before restoring shell: bash