diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index f9a720feb6..0c510b3658 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -238,6 +238,10 @@ jobs: sed -i 's|^_APP_DB_ADAPTER=.*|_APP_DB_ADAPTER=mongodb|' .env sed -i 's|^_APP_DB_HOST=.*|_APP_DB_HOST=mongodb|' .env sed -i 's|^_APP_DB_PORT=.*|_APP_DB_PORT=27017|' .env + elif [ "${{ matrix.db_adapter }}" = "POSTGRESQL" ]; then + sed -i 's|^_APP_DB_ADAPTER=.*|_APP_DB_ADAPTER=postgresql|' .env + sed -i 's|^_APP_DB_HOST=.*|_APP_DB_HOST=postgresql|' .env + sed -i 's|^_APP_DB_PORT=.*|_APP_DB_PORT=5432|' .env fi docker compose up -d @@ -265,12 +269,17 @@ jobs: export _APP_DATABASE_SHARED_TABLES= export _APP_DATABASE_SHARED_TABLES_V1= - # Set DB Adapter Specific ENV Vars using if-elif + # Set DB Adapter Specific ENV Vars if [ "${{ matrix.db_adapter }}" = "MARIADB" ]; then export _APP_DB_ADAPTER=mariadb export _APP_DB_HOST=mariadb export _APP_DB_PORT=3306 export _APP_DB_SCHEMA=appwrite + elif [ "${{ matrix.db_adapter }}" = "MONGODB" ]; then + export _APP_DB_ADAPTER=mongodb + export _APP_DB_HOST=mongodb + export _APP_DB_PORT=27017 + export _APP_DB_SCHEMA=appwrite elif [ "${{ matrix.db_adapter }}" = "POSTGRESQL" ]; then export _APP_DB_ADAPTER=postgresql export _APP_DB_HOST=postgresql