Skip to content

Commit

Permalink
Add if: condition to search for *.cy* before attempting to run them
Browse files Browse the repository at this point in the history
  • Loading branch information
BrianHenryIE committed May 8, 2024
1 parent 0d89030 commit 2490bf1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/module-plugin-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2490bf1

Please sign in to comment.