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