Skip to content

Commit

Permalink
chore(deps): update actions/cache action to v4
Browse files Browse the repository at this point in the history
  • Loading branch information
renovate[bot] committed Jan 17, 2024
1 parent 8e7cd1d commit bce5ca1
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ jobs:
id: check-artifact
run: echo "::set-output name=exists::$([ -e "artifact.tar" ] && echo true || echo false)"

- uses: actions/cache@v3
- uses: actions/cache@v4
if: ${{ steps.check-artifact.outputs.exists == 'false' }}
id: yarn-cache
with:
Expand All @@ -75,7 +75,7 @@ jobs:

# https://github.com/actions/upload-artifact/issues/53
- name: Cache artifact
uses: actions/cache@v3
uses: actions/cache@v4
id: artifact
with:
path: artifact.tar
Expand All @@ -95,7 +95,7 @@ jobs:
node-version: 20

- name: Restore artifact from cache (if exists)
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: artifact.tar
key: artifact-${{ needs.init.outputs.checksum }}
Expand All @@ -118,7 +118,7 @@ jobs:
- name: Unpack artifact
run: tar -xvf artifact.tar

- uses: actions/cache@v3
- uses: actions/cache@v4
id: yarn-cache
with:
path: ${{ needs.init.outputs.yarn-cache-dir }}
Expand All @@ -136,7 +136,7 @@ jobs:
- name: Cache coverage
if: github.ref == 'refs/heads/master'
id: cache-coverage
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: |
coverage
Expand All @@ -160,15 +160,15 @@ jobs:
with:
node-version: ${{ matrix.node-version }}

- uses: actions/cache@v3
- uses: actions/cache@v4
id: yarn-cache
with:
path: ${{ needs.init.outputs.yarn-cache-dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Restore artifact from cache (if exists)
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: artifact.tar
key: artifact-${{ needs.init.outputs.checksum }}
Expand Down Expand Up @@ -213,7 +213,7 @@ jobs:
ref: master

- name: Restore artifact from cache (if exists)
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: artifact.tar
key: artifact-${{ needs.init.outputs.checksum }}
Expand All @@ -234,7 +234,7 @@ jobs:
search_depth: 10

- name: Restore coverage
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: |
coverage
Expand All @@ -256,7 +256,7 @@ jobs:
coverageLocations: |
${{github.workspace}}/coverage/*.lcov:lcov
- uses: actions/cache@v3
- uses: actions/cache@v4
id: yarn-cache
with:
path: ${{ needs.init.outputs.yarn-cache-dir }}
Expand Down

0 comments on commit bce5ca1

Please sign in to comment.