From 5feb2dba9da2bd5e233451b7b0f1c99414b5aef9 Mon Sep 17 00:00:00 2001 From: Joshua Chen Date: Sun, 29 May 2022 07:00:37 +0800 Subject: [PATCH] test: fix Cypress test flakes (#5086) * ci: cache Cypress binary in install * try again... * add wait-on * remove wait-on... Co-authored-by: Josh Goldberg --- .github/actions/prepare-install/action.yml | 4 +++- .github/workflows/ci.yml | 3 +++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/actions/prepare-install/action.yml b/.github/actions/prepare-install/action.yml index 73fc2191a0d..4d28fccf7b2 100644 --- a/.github/actions/prepare-install/action.yml +++ b/.github/actions/prepare-install/action.yml @@ -31,7 +31,9 @@ runs: - uses: actions/cache@v3 id: yarn-cache with: - path: ${{ steps.yarn-cache-dir-path.outputs.dir }} + path: | + ${{ steps.yarn-cache-dir-path.outputs.dir }} + ~/.cache/Cypress key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} restore-keys: | ${{ runner.os }}-yarn- diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a2e01de9938..533fd57ce0a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -193,6 +193,9 @@ jobs: - name: Build uses: ./.github/actions/prepare-build + - name: Install Cypress + run: yarn cypress install + - name: Cypress run uses: cypress-io/github-action@v2 with: