Skip to content

Commit 227eeec

Browse files
add compression args to workflow cache test
1 parent abfe1d3 commit 227eeec

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

.github/workflows/cache-tests.yml

+9-2
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ jobs:
1616
strategy:
1717
matrix:
1818
runs-on: [ubuntu-latest, windows-latest, macOS-latest]
19+
compression: ['auto', 'gzip', 'zstd', 'none']
1920
fail-fast: false
2021

2122
runs-on: ${{ matrix.runs-on }}
@@ -55,8 +56,14 @@ jobs:
5556

5657
# We're using node -e to call the functions directly available in the @actions/cache package
5758
- name: Save cache using saveCache()
58-
run: |
59-
node -e "Promise.resolve(require('./packages/cache/lib/cache').saveCache(['test-cache','~/test-cache'],'test-${{ runner.os }}-${{ github.run_id }}'))"
59+
run: >
60+
node -e "Promise.resolve(require('./packages/cache/lib/cache').saveCache(
61+
['test-cache','~/test-cache'],
62+
'test-${{ runner.os }}-${{ github.run_id }}',
63+
undefined,
64+
false,
65+
${{ matrix.compression }}
66+
))"
6067
6168
- name: Delete cache folders before restoring
6269
shell: bash

0 commit comments

Comments
 (0)