mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
chore: filtered out customclienttests
This commit is contained in:
@@ -166,27 +166,12 @@ jobs:
|
||||
export _APP_DATABASE_SHARED_TABLES_V1=
|
||||
fi
|
||||
|
||||
ABUSE_ENABLED=$(grep -oP '^_APP_OPTIONS_ABUSE=\K\w+' .env || echo 'disabled')
|
||||
TEST_SUFFIXES=$( [[ "$ABUSE_ENABLED" == "enabled" ]] && echo 'CustomServer CustomClient' || echo 'ConsoleClient')
|
||||
|
||||
TEST_FOLDER="/usr/src/code/tests/e2e/Services/${{ matrix.service }}"
|
||||
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$//')
|
||||
|
||||
if [ -n "$SUFFIX" ]; then
|
||||
if [[ "$TEST_SUFFIXES" == *"$SUFFIX"* ]]; then
|
||||
docker compose exec -T \
|
||||
-e _APP_DATABASE_SHARED_TABLES \
|
||||
-e _APP_DATABASE_SHARED_TABLES_V1 \
|
||||
appwrite test "$TEST_FILE" --debug
|
||||
fi
|
||||
else
|
||||
for test_file in /usr/src/code/tests/e2e/Services/${{ matrix.service }}/*Test.php; do
|
||||
if [[ "$test_file" != *CustomClientTest.php ]]; then
|
||||
docker compose exec -T \
|
||||
-e _APP_DATABASE_SHARED_TABLES \
|
||||
-e _APP_DATABASE_SHARED_TABLES_V1 \
|
||||
appwrite test "$TEST_FILE" --debug
|
||||
appwrite test "$test_file" --debug
|
||||
fi
|
||||
done
|
||||
|
||||
|
||||
Reference in New Issue
Block a user