From d6fb0a889b6ff5290eeddf23b12d34909ba5fc31 Mon Sep 17 00:00:00 2001 From: Evan Mullins Date: Thu, 1 Feb 2024 10:01:31 -0500 Subject: [PATCH] first run module tests, then run the rest if not running only module tests --- .github/workflows/module-plugin-test.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/module-plugin-test.yml b/.github/workflows/module-plugin-test.yml index 63e6685..4ca4faa 100644 --- a/.github/workflows/module-plugin-test.yml +++ b/.github/workflows/module-plugin-test.yml @@ -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()