diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 9912e3d6e7..84a6ef9e34 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -36,12 +36,12 @@ jobs: echo "Listing contents of mocked directory:" ls -la "$TEST_DIR" - TEST_FILES=$(find "$TEST_DIR" -name "*.cy.ts" | tr '\n' ',') - echo "files=$TEST_FILES" >> $GITHUB_OUTPUT - else - echo "Directory does not exist. No test files found." >> $GITHUB_OUTPUT - echo "files=" >> $GITHUB_OUTPUT # Set empty output if no files found - fi + TEST_FILES=$(find "$TEST_DIR" -name "*.cy.ts" | tr '\n' ',') + echo "files=$TEST_FILES" >> $GITHUB_OUTPUT + else + echo "Directory does not exist. No test files found." >> $GITHUB_OUTPUT + echo "files=" >> $GITHUB_OUTPUT # Set empty output if no files found + fi - name: Run Cypress Mock Tests in Parallel run: |