Skip to content

Commit

Permalink
chore(repo): cache Cypress install for nightly tests to avoid "Cypres…
Browse files Browse the repository at this point in the history
…s binary is missing" errors (#15934)
  • Loading branch information
jaysoo committed Mar 28, 2023
1 parent 9dbc90d commit 16b3fa0
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/e2e-matrix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ on:
required: false
default: false

env:
CYPRESS_CACHE_FOLDER: '.cypress'

permissions: {}
jobs:
preinstall:
Expand Down Expand Up @@ -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: |
Expand Down
10 changes: 10 additions & 0 deletions .github/workflows/e2e-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ on:
required: false
default: false

env:
CYPRESS_CACHE_FOLDER: '.cypress'

permissions: {}
jobs:
preinstall:
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 16b3fa0

Please sign in to comment.