Skip to content

Commit

Permalink
Merge pull request #3 from newfold-labs/reorder-tests
Browse files Browse the repository at this point in the history
Move Module Cypress Tests above (all) Cypress Tests
  • Loading branch information
circlecube authored Apr 11, 2024
2 parents 63bec97 + d759eba commit b73f33d
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/module-plugin-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -228,13 +228,12 @@ jobs:
- name: Install WordPress
run: npx @wordpress/env@latest start --debug

- name: Run Cypress Tests
if: ${{ ! inputs.only-module-tests }}
run: npm run test:e2e -- --browser chrome
- name: Run Module Cypress Tests
run: npm run test:e2e -- --browser chrome --spec "vendor/(${{ inputs.module-repo }}/**/*.cy.js)"

- name: Run Only Module Cypress Tests
if: ${{ inputs.only-module-tests }}
run: npm run test:e2e -- --browser chrome --spec "vendor/${{ inputs.module-repo }}/**/*"
- name: Run Remaining Cypress Tests
if: ${{ ! inputs.only-module-tests }}
run: npm run test:e2e -- --browser chrome --spec "vendor/!(${{ inputs.module-repo }}/**/*.cy.js)"

- name: Store screenshots of test failures
if: failure()
Expand Down

0 comments on commit b73f33d

Please sign in to comment.