try with inputs.tests

This commit is contained in:
leehk 2025-04-16 21:30:15 +08:00
parent 9a1bc2f89d
commit eecd552966

View File

@ -152,8 +152,8 @@ jobs:
- name: Run Tests
shell: bash
run: |
TEST_DIRS='["tests/integration/backend"]'
TEST_ENVS_JSON='["FRONTEND_URL=http://frontend:80","BACKEND_URL=http://backend:80","ENVIRONMENT=dev","TESTING=1"]'
TEST_DIRS='${{ inputs.tests }}' # Get JSON array string
TEST_ENVS_JSON='${{ inputs.testEnvs }}' # Get JSON array string
RESULTS_PATH="${{ inputs.testResultsPath }}"
STAGING_DIR="${{ runner.temp }}/test-results" # Use runner temp dir for results
mkdir -p "$STAGING_DIR"