Skip to content

Commit bc6edac

Browse files
github actions: updating actions/cache to v4 (#6726)
**Problem:** actions/cache@v2 has been deprecated and removed since February **Fix:** Bumping to actions/cache@v4. in theory it's a seamless upgrade, let's see if it is true in reality too
1 parent 1d95a9d commit bc6edac

File tree

7 files changed

+34
-34
lines changed

7 files changed

+34
-34
lines changed

.github/workflows/cache-pnpm-install.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
id: capture-pnpm-store-path
3131
run: nix-shell --arg includeServerBuildSupport false --arg includeRunLocallySupport false --run 'echo "pnpm-store-path=$(pnpm store path)" >> "$GITHUB_OUTPUT"'
3232
- name: Cache pnpm store
33-
uses: actions/cache@v2
33+
uses: actions/cache@v4
3434
with:
3535
path: ${{ steps.capture-pnpm-store-path.outputs.pnpm-store-path }}
3636
key: ${{ runner.os }}-${{ hashFiles('**/pnpm-lock.yaml') }}-captured-location

.github/workflows/check-staging.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
take-screenshot:
1414
name: Take Screenshot
1515
timeout-minutes: 15
16-
runs-on: ubuntu-latest
16+
runs-on: ubuntu-22.04
1717
needs: [cache-pnpm-store]
1818
steps:
1919
- name: Cancel existing runs on this branch
@@ -23,7 +23,7 @@ jobs:
2323
- name: Check out the repo
2424
uses: actions/checkout@v2
2525
- name: Cache .pnpm-store
26-
uses: actions/cache@v2
26+
uses: actions/cache@v4
2727
with:
2828
path: ${{ needs.cache-pnpm-store.outputs.pnpm-store-path }}
2929
key: ${{ runner.os }}-${{ hashFiles('**/pnpm-lock.yaml') }}-captured-location
@@ -87,7 +87,7 @@ jobs:
8787
- name: Check out the repo
8888
uses: actions/checkout@v2
8989
- name: Cache .pnpm-store
90-
uses: actions/cache@v2
90+
uses: actions/cache@v4
9191
with:
9292
path: ${{ needs.cache-pnpm-store.outputs.pnpm-store-path }}
9393
key: ${{ runner.os }}-${{ hashFiles('**/pnpm-lock.yaml') }}-captured-location

.github/workflows/editor-sharded-tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,13 @@ jobs:
2828
uses: actions/checkout@v2
2929
- name: Cache editor test result
3030
id: cache-editor-tests
31-
uses: actions/cache@v2
31+
uses: actions/cache@v4
3232
with:
3333
# For the tests it doesn't really matter what we cache
3434
path: editor/lib
3535
key: ${{ runner.os }}-editor-karma-tests-shard-${{ inputs.shard_number }}-${{ inputs.branch }}-${{ hashFiles('editor/src/**') }}-${{ hashFiles('utopia-api/src/**') }}-${{ hashFiles('editor/package.json') }}-${{ hashFiles('utopia-api/package.json') }}
3636
- name: Cache .pnpm-store
37-
uses: actions/cache@v2
37+
uses: actions/cache@v4
3838
with:
3939
path: ${{ inputs.pnpm-store-path }}
4040
key: ${{ runner.os }}-${{ hashFiles('**/pnpm-lock.yaml') }}-captured-location

.github/workflows/master-pushes.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,13 @@ jobs:
2525
uses: actions/checkout@v2
2626
- name: Cache editor test result
2727
id: cache-editor-tests
28-
uses: actions/cache@v2
28+
uses: actions/cache@v4
2929
with:
3030
# For the tests it doesn't really matter what we cache
3131
path: editor/lib
3232
key: ${{ runner.os }}-editor-code-tests-master-${{ hashFiles('editor/src/**') }}-${{ hashFiles('utopia-api/src/**') }}-${{ hashFiles('editor/package.json') }}-${{ hashFiles('utopia-api/package.json') }}
3333
- name: Cache .pnpm-store
34-
uses: actions/cache@v2
34+
uses: actions/cache@v4
3535
with:
3636
path: ${{ needs.cache-pnpm-store.outputs.pnpm-store-path }}
3737
key: ${{ runner.os }}-${{ hashFiles('**/pnpm-lock.yaml') }}-captured-location
@@ -59,13 +59,13 @@ jobs:
5959
uses: actions/checkout@v2
6060
- name: Cache editor test result
6161
id: cache-editor-tests
62-
uses: actions/cache@v2
62+
uses: actions/cache@v4
6363
with:
6464
# For the tests it doesn't really matter what we cache
6565
path: editor/lib
6666
key: ${{ runner.os }}-editor-jest-tests-master-${{ hashFiles('editor/src/**') }}-${{ hashFiles('utopia-api/src/**') }}-${{ hashFiles('editor/package.json') }}-${{ hashFiles('utopia-api/package.json') }}
6767
- name: Cache .pnpm-store
68-
uses: actions/cache@v2
68+
uses: actions/cache@v4
6969
with:
7070
path: ${{ needs.cache-pnpm-store.outputs.pnpm-store-path }}
7171
key: ${{ runner.os }}-${{ hashFiles('**/pnpm-lock.yaml') }}-captured-location
@@ -107,23 +107,23 @@ jobs:
107107
- name: Check out the repo
108108
uses: actions/checkout@v2
109109
- name: Cache .cabal/packages
110-
uses: actions/cache@v2
110+
uses: actions/cache@v4
111111
with:
112112
path: .cabal/packages
113113
key: ${{ runner.os }}-${{ matrix.ghc }}-cabal-packages-2
114114
- name: Cache .cabal/store
115-
uses: actions/cache@v2
115+
uses: actions/cache@v4
116116
with:
117117
path: .cabal/store
118118
key: ${{ runner.os }}-${{ matrix.ghc }}-cabal-store-2
119119
- name: Cache dist-newstyle
120-
uses: actions/cache@v2
120+
uses: actions/cache@v4
121121
with:
122122
path: server/dist-newstyle
123123
key: ${{ runner.os }}-${{ matrix.ghc }}-server-dist-newstyle-2
124124
- name: Cache server test result
125125
id: cache-server-tests
126-
uses: actions/cache@v2
126+
uses: actions/cache@v4
127127
with:
128128
# For the tests it doesn't really matter what we cache
129129
path: server/src

.github/workflows/pull-requests.yml

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,13 @@ jobs:
2323
uses: actions/checkout@v2
2424
- name: Cache editor test result
2525
id: cache-editor-tests
26-
uses: actions/cache@v2
26+
uses: actions/cache@v4
2727
with:
2828
# For the tests it doesn't really matter what we cache
2929
path: editor/lib
3030
key: ${{ runner.os }}-editor-code-tests-PR-${{ hashFiles('editor/src/**') }}-${{ hashFiles('utopia-api/src/**') }}-${{ hashFiles('editor/package.json') }}-${{ hashFiles('utopia-api/package.json') }}
3131
- name: Cache pnpm store
32-
uses: actions/cache@v2
32+
uses: actions/cache@v4
3333
with:
3434
path: ${{ needs.cache-pnpm-store.outputs.pnpm-store-path }}
3535
key: ${{ runner.os }}-${{ hashFiles('**/pnpm-lock.yaml') }}-captured-location
@@ -59,13 +59,13 @@ jobs:
5959
uses: actions/checkout@v2
6060
- name: Cache editor test result
6161
id: cache-editor-tests
62-
uses: actions/cache@v2
62+
uses: actions/cache@v4
6363
with:
6464
# For the tests it doesn't really matter what we cache
6565
path: editor/lib
6666
key: ${{ runner.os }}-editor-jest-tests-PR-${{ hashFiles('editor/src/**') }}-${{ hashFiles('utopia-api/src/**') }}-${{ hashFiles('editor/package.json') }}-${{ hashFiles('utopia-api/package.json') }}
6767
- name: Cache .pnpm-store
68-
uses: actions/cache@v2
68+
uses: actions/cache@v4
6969
with:
7070
path: ${{ needs.cache-pnpm-store.outputs.pnpm-store-path }}
7171
key: ${{ runner.os }}-${{ hashFiles('**/pnpm-lock.yaml') }}-captured-location
@@ -107,23 +107,23 @@ jobs:
107107
- name: Check out the repo
108108
uses: actions/checkout@v2
109109
- name: Cache .cabal/packages
110-
uses: actions/cache@v2
110+
uses: actions/cache@v4
111111
with:
112112
path: .cabal/packages
113113
key: ${{ runner.os }}-${{ matrix.ghc }}-cabal-packages-2
114114
- name: Cache .cabal/store
115-
uses: actions/cache@v2
115+
uses: actions/cache@v4
116116
with:
117117
path: .cabal/store
118118
key: ${{ runner.os }}-${{ matrix.ghc }}-cabal-store-2
119119
- name: Cache dist-newstyle
120-
uses: actions/cache@v2
120+
uses: actions/cache@v4
121121
with:
122122
path: server/dist-newstyle
123123
key: ${{ runner.os }}-${{ matrix.ghc }}-server-dist-newstyle-2
124124
- name: Cache server test result
125125
id: cache-server-tests
126-
uses: actions/cache@v2
126+
uses: actions/cache@v4
127127
with:
128128
# For the tests it doesn't really matter what we cache
129129
path: server/src
@@ -178,7 +178,7 @@ jobs:
178178
- name: Check out the repo
179179
uses: actions/checkout@v2
180180
- name: Cache .pnpm-store
181-
uses: actions/cache@v2
181+
uses: actions/cache@v4
182182
with:
183183
path: ${{ needs.cache-pnpm-store.outputs.pnpm-store-path }}
184184
key: ${{ runner.os }}-${{ hashFiles('**/pnpm-lock.yaml') }}-captured-location
@@ -279,7 +279,7 @@ jobs:
279279
- name: Check out the repo
280280
uses: actions/checkout@v2
281281
- name: Cache .pnpm-store
282-
uses: actions/cache@v2
282+
uses: actions/cache@v4
283283
with:
284284
path: ${{ needs.cache-pnpm-store.outputs.pnpm-store-path }}
285285
key: ${{ runner.os }}-${{ hashFiles('**/pnpm-lock.yaml') }}-captured-location
@@ -366,7 +366,7 @@ jobs:
366366
system-test:
367367
name: Run System Tests
368368
timeout-minutes: 15
369-
runs-on: ubuntu-latest
369+
runs-on: ubuntu-22.04
370370
needs: [deploy-branch, cache-pnpm-store]
371371
env:
372372
UTOPIA_SHA: ${{ github.sha }}
@@ -382,7 +382,7 @@ jobs:
382382
- name: Check out the repo
383383
uses: actions/checkout@v2
384384
- name: Cache .pnpm-store
385-
uses: actions/cache@v2
385+
uses: actions/cache@v4
386386
with:
387387
path: ${{ needs.cache-pnpm-store.outputs.pnpm-store-path }}
388388
key: ${{ runner.os }}-${{ hashFiles('**/pnpm-lock.yaml') }}-captured-location
@@ -427,7 +427,7 @@ jobs:
427427
- name: Check out the repo
428428
uses: actions/checkout@v2
429429
- name: Cache .pnpm-store
430-
uses: actions/cache@v2
430+
uses: actions/cache@v4
431431
with:
432432
path: ${{ needs.cache-pnpm-store.outputs.pnpm-store-path }}
433433
key: ${{ runner.os }}-${{ hashFiles('**/pnpm-lock.yaml') }}-captured-location
@@ -474,7 +474,7 @@ jobs:
474474
version: 7.14.2
475475
run_install: false
476476
- name: Cache .pnpm-store
477-
uses: actions/cache@v2
477+
uses: actions/cache@v4
478478
with:
479479
path: ${{ needs.cache-pnpm-store.outputs.pnpm-store-path }}
480480
key: ${{ runner.os }}-${{ hashFiles('**/pnpm-lock.yaml') }}-captured-location
@@ -485,7 +485,7 @@ jobs:
485485
-e "MINIO_ROOT_PASSWORD=minioadmin" \
486486
-v /tmp/data:/data \
487487
-v /tmp/config:/root/.minio \
488-
quay.io/minio/minio:RELEASE.2024-05-10T01-41-38Z \
488+
quay.io/minio/minio:RELEASE.2025-01-20T14-49-07Z \
489489
server /data
490490
- name: Get minIO client
491491
run: |
@@ -495,7 +495,7 @@ jobs:
495495
sudo mv mc /usr/local/bin
496496
- name: Wait for minIO host
497497
run: |
498-
until mc config host add minio-test http://localhost:9000 minioadmin minioadmin; do
498+
until mc alias set minio-test http://localhost:9000 minioadmin minioadmin; do
499499
sleep 2
500500
done
501501
- name: Create test minIO bucket

.github/workflows/screenshot-production.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
take-screenshot:
1414
name: Take Screenshot
1515
timeout-minutes: 15
16-
runs-on: ubuntu-latest
16+
runs-on: ubuntu-22.04
1717
needs: [cache-pnpm-store]
1818
steps:
1919
- name: Cancel existing runs on this branch
@@ -23,7 +23,7 @@ jobs:
2323
- name: Check out the repo
2424
uses: actions/checkout@v2
2525
- name: Cache .pnpm-store
26-
uses: actions/cache@v2
26+
uses: actions/cache@v4
2727
with:
2828
path: ${{ needs.cache-pnpm-store.outputs.pnpm-store-path }}
2929
key: ${{ runner.os }}-${{ hashFiles('**/pnpm-lock.yaml') }}-captured-location

.github/workflows/tag-release-automated.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,15 @@ jobs:
1212
# For automated releases we want to check it is safe first
1313
name: Run System Tests
1414
timeout-minutes: 15
15-
runs-on: ubuntu-latest
15+
runs-on: ubuntu-22.04
1616
needs: [cache-pnpm-store]
1717
env:
1818
UTOPIA_SHA: ${{ github.sha }}
1919
steps:
2020
- name: Check out the repo
2121
uses: actions/checkout@v2
2222
- name: Cache .pnpm-store
23-
uses: actions/cache@v2
23+
uses: actions/cache@v4
2424
with:
2525
path: ${{ needs.cache-pnpm-store.outputs.pnpm-store-path }}
2626
key: ${{ runner.os }}-${{ hashFiles('**/pnpm-lock.yaml') }}-captured-location

0 commit comments

Comments
 (0)