diff --git a/.github/workflows/integration-tests-workflow.yml b/.github/workflows/integration-tests-workflow.yml index 8155bab89..0bfa5fb93 100644 --- a/.github/workflows/integration-tests-workflow.yml +++ b/.github/workflows/integration-tests-workflow.yml @@ -21,10 +21,8 @@ jobs: - name: Generate test files list id: set-matrix run: | - TEST_FILES=$(ls .cypress/integration/*.{js,ts} | xargs -n 1 basename) - TEST_FILES_JSON=$(echo $TEST_FILES | jq -R -s -c 'split("\n") | map(select(length > 0)) | map("\"" + . + "\"") | join(", ")') - echo "::set-output name=matrix::{\"testfiles\": [$TEST_FILES_JSON]}" - + TEST_FILES=$(ls .cypress/integration/*.{js,ts} | xargs -n 1 basename | jq -R -s -c 'split("\n") | map(select(length > 0))') + echo "::set-output name=matrix::{\"testfiles\": $TEST_FILES}" - name: Print matrix output run: echo ${{ steps.set-matrix.outputs.matrix }}