From cbecae4eaa4133666ffbddec541ff27e4cdbd4dc Mon Sep 17 00:00:00 2001 From: Aasim Syed Date: Fri, 19 Apr 2024 21:21:45 -0400 Subject: [PATCH] Attempt to fix Cypress caching check --- .github/workflows/main.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index c16de43..9208b53 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -36,7 +36,8 @@ jobs: - name: Check Cypress binary run: | - if [ ! -f $(npm bin)/cypress ]; then + CYPRESS_BINARY_PATH=$(npm bin)/../.cache/Cypress/*/Cypress/Cypress + if [ ! -f "$CYPRESS_BINARY_PATH" ]; then echo "Cypress binary not found. Installing..." npx cypress install fi