Skip to content

Commit

Permalink
Merge pull request #10 from newfold-labs/add/check-module-has-Cypress…
Browse files Browse the repository at this point in the history
…-tests-before-running-them

Add `if:` condition to search for `*.cy*` before attempting to run them
  • Loading branch information
BrianHenryIE authored May 9, 2024
2 parents 0d89030 + 2490bf1 commit 1de12fd
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 1de12fd

Please sign in to comment.