diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 98b2b2ade1..57cb7a57d2 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -54,7 +54,7 @@ jobs: echo "Test Files: $TEST_FILES" # Generate the list of spec files for this container and trim trailing comma - cd ./frontend && SPEC_FILES=$(echo "$TEST_FILES" | tr ',' '\n' | awk -v container="$CONTAINER_INDEX" 'NR % 5 == container - 1' | sed 's|^frontend/||' | tr '\n' ',' | sed 's/,$//') + SPEC_FILES=$(echo "$TEST_FILES" | tr ',' '\n' | awk -v container="$CONTAINER_INDEX" 'NR % 5 == container - 1' | sed 's|^frontend/||' | tr '\n' ',' | sed 's/,$//') # Check if SPEC_FILES is empty if [ -z "$SPEC_FILES" ]; then @@ -62,5 +62,5 @@ jobs: exit 0 else echo "Spec files for this container- $SPEC_FILES" - cd ./frontend && CYPRESS_SPEC_PATTERN="$SPEC_FILES" npm run test:cypress-ci + cd frontend && CYPRESS_SPEC_PATTERN="$SPEC_FILES" npm run test:cypress-ci fi