From 2490bf14edcaf820ebb22e2d5374472702e400fd Mon Sep 17 00:00:00 2001 From: Brian Henry Date: Wed, 8 May 2024 11:29:38 -0700 Subject: [PATCH] Add `if:` condition to search for `*.cy*` before attempting to run them --- .github/workflows/module-plugin-test.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/module-plugin-test.yml b/.github/workflows/module-plugin-test.yml index 645e1c4..9ba0dab 100644 --- a/.github/workflows/module-plugin-test.yml +++ b/.github/workflows/module-plugin-test.yml @@ -229,6 +229,7 @@ jobs: run: npx @wordpress/env@latest start --debug - name: Run Module Cypress Tests + if: $([[ ! $(find ./vendor/${{ inputs.module-repo }} -depth -name '*.cy*') ]]) run: npm run test:e2e -- --browser chrome --spec "vendor/(${{ inputs.module-repo }}/**/*.cy.js)" - name: Run Remaining Cypress Tests