From 0a79654728c66feec164af7607308a60e6648950 Mon Sep 17 00:00:00 2001 From: leehk Date: Thu, 17 Apr 2025 09:50:09 +0800 Subject: [PATCH] update --- .github/workflows/template_test.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/template_test.yml b/.github/workflows/template_test.yml index 2476859..7011260 100644 --- a/.github/workflows/template_test.yml +++ b/.github/workflows/template_test.yml @@ -146,8 +146,8 @@ jobs: - name: Run Tests shell: bash run: | - TEST_DIRS=$(echo '${{ inputs.tests }}' | jq) - TEST_ENVS_JSON=$(echo '${{ inputs.testEnvs }}' | jq) + TEST_DIRS="${{ inputs.tests }}" + TEST_ENVS_JSON="${{ inputs.testEnvs }}" RESULTS_PATH="${{ inputs.testResultsPath }}" STAGING_DIR="${{ runner.temp }}/test-results" # Use runner temp dir for results mkdir -p "$STAGING_DIR" @@ -170,7 +170,7 @@ jobs: echo "Using Network: $COMPOSE_NETWORK_NAME" # Loop through test directories and execute tests - echo "$TEST_DIRS" | jq -c '.[]' | while read test_dir; do + echo "$TEST_DIRS" | jq -r '.[]' | while read test_dir; do test_dir=$(echo $test_dir | sed 's/"//g') # Remove quotes echo "Running test: $test_dir" docker run \