chore(repo): cache Cypress install for nightly tests to avoid "Cypress binary is missing" errors (#15934)
This commit is contained in:
parent
9dbc90d45e
commit
16b3fa0931
10
.github/workflows/e2e-matrix.yml
vendored
10
.github/workflows/e2e-matrix.yml
vendored
@ -11,6 +11,9 @@ on:
|
||||
required: false
|
||||
default: false
|
||||
|
||||
env:
|
||||
CYPRESS_CACHE_FOLDER: '.cypress'
|
||||
|
||||
permissions: {}
|
||||
jobs:
|
||||
preinstall:
|
||||
@ -347,6 +350,13 @@ jobs:
|
||||
restore-keys: |
|
||||
brew-
|
||||
|
||||
- name: Cache Cypress
|
||||
id: cache-cypress
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
path: '.cypress'
|
||||
key: ${{ runner.os }}-cypress
|
||||
|
||||
- name: Install applesimutils, reset ios simulators
|
||||
if: ${{ matrix.os == 'macos-latest' }}
|
||||
run: |
|
||||
|
||||
10
.github/workflows/e2e-windows.yml
vendored
10
.github/workflows/e2e-windows.yml
vendored
@ -11,6 +11,9 @@ on:
|
||||
required: false
|
||||
default: false
|
||||
|
||||
env:
|
||||
CYPRESS_CACHE_FOLDER: '.cypress'
|
||||
|
||||
permissions: {}
|
||||
jobs:
|
||||
preinstall:
|
||||
@ -259,6 +262,13 @@ jobs:
|
||||
if: steps.cache-modules.outputs.cache-hit != 'true'
|
||||
run: yarn install --prefer-offline --frozen-lockfile --non-interactive
|
||||
|
||||
- name: Cache Cypress
|
||||
id: cache-cypress
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
path: '.cypress'
|
||||
key: ${{ runner.os }}-cypress
|
||||
|
||||
- name: Configure git metadata (needed for lerna smoke tests)
|
||||
run: |
|
||||
git config --global user.email test@test.com
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user