Skip to content

Commit 7d121d8

Browse files
authored
chore: use cache for cypress download and update actions/cache version (#18976)
* chore: use cache for cypress download and update actions/cache version
1 parent 349092e commit 7d121d8

11 files changed

+21
-14
lines changed

.github/actions/js/setup/action.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,13 @@ runs:
1717
node-version: '22.11.0'
1818
cache: 'yarn'
1919

20+
- name: 'Cache Cypress binary'
21+
id: cache-cypress
22+
uses: actions/cache@v4
23+
with:
24+
path: ~/.cache/Cypress
25+
key: cypress-${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}
26+
2027
- name: 'Install udev for USB-detection'
2128
if: runner.os == 'Linux'
2229
shell: bash

.github/workflows/components-test-build-deploy.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ jobs:
5353
sudo rm -f /etc/apt/sources.list.d/microsoft-prod.list
5454
sudo apt-get update && sudo apt-get install libudev-dev
5555
- name: 'cache yarn cache'
56-
uses: actions/cache@v3
56+
uses: actions/cache@v4
5757
with:
5858
path: |
5959
${{ github.workspace }}/.yarn-cache
@@ -89,7 +89,7 @@ jobs:
8989
sudo rm -f /etc/apt/sources.list.d/microsoft-prod.list
9090
sudo apt-get update && sudo apt-get install libudev-dev
9191
- name: 'cache yarn cache'
92-
uses: actions/cache@v3
92+
uses: actions/cache@v4
9393
with:
9494
path: |
9595
${{ github.workspace }}/.yarn-cache

.github/workflows/g-code-testing-lint-test.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ jobs:
6767
with:
6868
project: 'g-code-testing'
6969
- name: 'cache yarn cache'
70-
uses: actions/cache@v3
70+
uses: actions/cache@v4
7171
with:
7272
path: |
7373
${{ github.workspace }}/.npm-cache/_prebuild

.github/workflows/js-check.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ jobs:
5959
sudo rm -f /etc/apt/sources.list.d/microsoft-prod.list
6060
sudo apt-get update && sudo apt-get install libudev-dev
6161
- name: 'cache yarn cache'
62-
uses: actions/cache@v3
62+
uses: actions/cache@v4
6363
with:
6464
path: |
6565
${{ github.workspace }}/.yarn-cache

.github/workflows/ll-test-build-deploy.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ jobs:
5858
sudo rm -f /etc/apt/sources.list.d/microsoft-prod.list
5959
sudo apt-get update && sudo apt-get install libudev-dev
6060
- name: 'cache yarn cache'
61-
uses: actions/cache@v3
61+
uses: actions/cache@v4
6262
with:
6363
path: |
6464
${{ github.workspace }}/.yarn-cache
@@ -101,7 +101,7 @@ jobs:
101101
sudo rm -f /etc/apt/sources.list.d/microsoft-prod.list
102102
sudo apt-get update && sudo apt-get install libudev-dev
103103
- name: 'cache yarn cache'
104-
uses: actions/cache@v3
104+
uses: actions/cache@v4
105105
with:
106106
path: |
107107
${{ github.workspace }}/.yarn-cache
@@ -144,7 +144,7 @@ jobs:
144144
sudo rm -f /etc/apt/sources.list.d/microsoft-prod.list
145145
sudo apt-get update && sudo apt-get install libudev-dev
146146
- name: 'cache yarn cache'
147-
uses: actions/cache@v3
147+
uses: actions/cache@v4
148148
with:
149149
path: |
150150
${{ github.workspace }}/.yarn-cache

.github/workflows/opentrons-ai-client-staging-continuous-deploy.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141
const { buildComplexEnvVars } = require(`${process.env.GITHUB_WORKSPACE}/.github/workflows/utils.js`)
4242
buildComplexEnvVars(core, context)
4343
- name: 'cache yarn cache'
44-
uses: actions/cache@v3
44+
uses: actions/cache@v4
4545
with:
4646
path: |
4747
${{ github.workspace }}/.npm-cache/_prebuild

.github/workflows/opentrons-ai-client-test.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ jobs:
5656
const { buildComplexEnvVars } = require(`${process.env.GITHUB_WORKSPACE}/.github/workflows/utils.js`)
5757
buildComplexEnvVars(core, context)
5858
- name: 'cache yarn cache'
59-
uses: actions/cache@v3
59+
uses: actions/cache@v4
6060
with:
6161
path: |
6262
${{ github.workspace }}/.npm-cache/_prebuild

.github/workflows/opentrons-ai-production-deploy.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040
const { buildComplexEnvVars } = require(`${process.env.GITHUB_WORKSPACE}/.github/workflows/utils.js`)
4141
buildComplexEnvVars(core, context)
4242
- name: 'cache yarn cache'
43-
uses: actions/cache@v3
43+
uses: actions/cache@v4
4444
with:
4545
path: |
4646
${{ github.workspace }}/.npm-cache/_prebuild

.github/workflows/react-api-client-test.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ jobs:
4646
sudo rm -f /etc/apt/sources.list.d/microsoft-prod.list
4747
sudo apt-get update && sudo apt-get install libudev-dev
4848
- name: 'cache yarn cache'
49-
uses: actions/cache@v3
49+
uses: actions/cache@v4
5050
with:
5151
path: |
5252
${{ github.workspace }}/.yarn-cache

.github/workflows/shared-data-test-lint-deploy.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ jobs:
125125
sudo rm -f /etc/apt/sources.list.d/microsoft-prod.list
126126
sudo apt-get update && sudo apt-get install libudev-dev
127127
- name: 'cache yarn cache'
128-
uses: actions/cache@v3
128+
uses: actions/cache@v4
129129
with:
130130
path: |
131131
${{ github.workspace }}/.yarn-cache
@@ -240,7 +240,7 @@ jobs:
240240
sudo rm -f /etc/apt/sources.list.d/microsoft-prod.list
241241
sudo apt-get update && sudo apt-get install libudev-dev
242242
- name: 'cache yarn cache'
243-
uses: actions/cache@v3
243+
uses: actions/cache@v4
244244
with:
245245
path: |
246246
${{ github.workspace }}/.yarn-cache

0 commit comments

Comments
 (0)