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