Fix workflow

This commit is contained in:
Jake Barnby
2024-11-15 18:40:06 +13:00
parent 24079a836b
commit 6851461a3b
+7 -4
View File
@@ -152,18 +152,21 @@ jobs:
- name: Run ${{ matrix.service }} tests with ${{ matrix.tables-mode }} table mode
run: |
if ${{ matrix.tables-mode == 'Shared V1' }}; then
if [ "${{ matrix.tables-mode }}" == "Shared V1" ]; then
export _APP_DATABASE_SHARED_TABLES=database_db_main
export _APP_DATABASE_SHARED_TABLES_V1=database_db_main
elseif ${{ matrix.tables-mode == 'Shared V2' }}; then
elif [ "${{ matrix.tables-mode }}" == "Shared V2" ]; then
export _APP_DATABASE_SHARED_TABLES=database_db_main
export _APP_DATABASE_SHARED_TABLES_V1=
else
export _APP_DATABASE_SHARED_TABLES=
export _APP_DATABASE_SHARED_TABLES_V1=
fi
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
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
benchmarking:
name: Benchmark