From 5a1ad4d5ae4e813f2061941c1062c9379ef10976 Mon Sep 17 00:00:00 2001 From: Chirag Aggarwal Date: Thu, 30 Jan 2025 11:48:43 +0000 Subject: [PATCH] chore: added grouping of devkeys in ci --- .github/workflows/tests.yml | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index a252b20172..007e3a6c1b 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -166,14 +166,20 @@ jobs: export _APP_DATABASE_SHARED_TABLES_V1= fi - 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 - fi - done + docker compose exec -T \ + -e _APP_DATABASE_SHARED_TABLES \ + -e _APP_DATABASE_SHARED_TABLES_V1 \ + appwrite test /usr/src/code/tests/e2e/Services/${{ matrix.service }} --debug --exclude=devKeys + + if [ "${{ matrix.service }}" == "Projects" ]; then + export _APP_OPTIONS_ABUSE=enabled + + docker compose exec -T \ + -e _APP_OPTIONS_ABUSE \ + -e _APP_DATABASE_SHARED_TABLES \ + -e _APP_DATABASE_SHARED_TABLES_V1 \ + appwrite test /usr/src/code/tests/e2e/Services/${{ matrix.service }} --debug --group=devKeys + fi benchmarking: name: Benchmark