Skip to content

Commit

Permalink
first run module tests, then run the rest if not running only module …
Browse files Browse the repository at this point in the history
…tests
  • Loading branch information
circlecube committed Feb 1, 2024
1 parent 4a188ee commit d6fb0a8
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/module-plugin-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -210,13 +210,12 @@ jobs:
- name: Install WordPress
run: npx @wordpress/env@latest start

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

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

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

0 comments on commit d6fb0a8

Please sign in to comment.