From c2aff2c2cb36053e8544618b88a93d4cbd928c8a Mon Sep 17 00:00:00 2001 From: Chirag Aggarwal Date: Tue, 28 Jan 2025 17:16:35 +0000 Subject: [PATCH] chore: fix fetching of test files --- .github/workflows/tests.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 19a77c8a56..02cbd30bbb 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -182,7 +182,7 @@ jobs: TEST_SUFFIXES=${{ matrix.test_suffix }} TEST_FOLDER="/usr/src/code/tests/e2e/Services/${{ matrix.service }}" - ALL_TEST_FILES=$(find "$TEST_FOLDER" -type f -name "*Test.php") + ALL_TEST_FILES=$(docker compose exec -T appwrite find "$TEST_FOLDER" -type f -name "*Test.php") for TEST_FILE in $ALL_TEST_FILES; do SUFFIX=$(echo "$TEST_FILE" | grep -oE '(CustomClient|CustomServer|ConsoleClient)Test\.php$' | sed 's/Test\.php$//') @@ -193,6 +193,7 @@ jobs: -e _APP_DATABASE_SHARED_TABLES \ -e _APP_DATABASE_SHARED_TABLES_V1 \ appwrite test "$TEST_FILE" --debug + fi else docker compose exec -T \ -e _APP_DATABASE_SHARED_TABLES \