CI: update cache actions to Node 20

This commit is contained in:
larabr
2024-04-19 16:31:16 +02:00
parent f3f1ab931b
commit 7e2ea3f871

View File

@@ -15,7 +15,7 @@ jobs:
- uses: actions/setup-node@v4
- name: Check for cached folders
id: cache-full
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: |
dist
@@ -44,7 +44,7 @@ jobs:
node-version: ${{ matrix.node-version }}
- run: npm ci --ignore-scripts # for mocha
- name: Retrieve cached folders
uses: actions/cache/restore@v3
uses: actions/cache/restore@v4
id: cache-full
with:
# test/lib is not needed, but the path must be specified fully for a cache-hit
@@ -65,7 +65,7 @@ jobs:
- uses: actions/setup-node@v4
- name: Retrieve cached built folders
uses: actions/cache/restore@v3
uses: actions/cache/restore@v4
id: cache-full
with:
path: |
@@ -86,7 +86,7 @@ jobs:
echo "version=$PLAYWRIGHT_VERSION" >> $GITHUB_OUTPUT
- name: Check for cached browsers
id: cache-playwright-browsers
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ~/.cache/ms-playwright
key: playwright-browsers-${{ steps.playwright-version.outputs.version }}
@@ -123,7 +123,7 @@ jobs:
run: npm ci --ignore-scripts
- name: Retrieve cached dist folder
uses: actions/cache/restore@v3
uses: actions/cache/restore@v4
id: cache-full
with:
path: |
@@ -158,7 +158,7 @@ jobs:
- uses: actions/setup-node@v4
- run: npm ci --ignore-scripts # TS
- name: Retrieve cached folders
uses: actions/cache/restore@v3
uses: actions/cache/restore@v4
id: cache-full
with:
path: |
@@ -177,7 +177,7 @@ jobs:
- uses: actions/setup-node@v4
- run: npm ci --ignore-scripts # linter
- name: Retrieve cached folders
uses: actions/cache/restore@v3
uses: actions/cache/restore@v4
id: cache-full
with:
path: |