Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test with mysql only db #8288

Closed
wants to merge 8 commits into from
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
test with mysql only db
  • Loading branch information
lohanidamodar committed Jun 19, 2024
commit ec92bbea8ab8b0794cbc4425c9ca7b71bac90ca9
34 changes: 17 additions & 17 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -108,22 +108,22 @@ jobs:
matrix:
service:
[
Account,
Avatars,
Console,
# Account,
# Avatars,
# Console,
Databases,
Functions,
GraphQL,
Health,
Locale,
Projects,
Realtime,
Storage,
Teams,
Users,
Webhooks,
VCS,
Messaging,
# Functions,
# GraphQL,
# Health,
# Locale,
# Projects,
# Realtime,
# Storage,
# Teams,
# Users,
# Webhooks,
# VCS,
# Messaging,
]

steps:
Expand All @@ -144,7 +144,7 @@ jobs:
sleep 25

- name: Run ${{matrix.service}} Tests
run: docker compose exec -T appwrite test /usr/src/code/tests/e2e/Services/${{matrix.service}} --debug
run: docker compose exec -T appwrite test /usr/src/code/tests/e2e/Services/${{matrix.service}} --filter="testCreateDatabase|testTimeout" --debug

- name: Run ${{matrix.service}} Shared Tables Tests
run: _APP_DATABASE_SHARED_TABLES=database_db_main docker compose exec -T appwrite test /usr/src/code/tests/e2e/Services/${{matrix.service}} --debug
run: _APP_DATABASE_SHARED_TABLES=database_db_main docker compose exec -T appwrite test /usr/src/code/tests/e2e/Services/${{matrix.service}} --filter="testCreateDatabase|testTimeout" --debug
2 changes: 1 addition & 1 deletion app/init.php
Original file line number Diff line number Diff line change
Expand Up @@ -751,7 +751,7 @@ function (mixed $value) {
$group = new Group();

$fallbackForDB = 'db_main=' . AppwriteURL::unparse([
'scheme' => 'mariadb',
'scheme' => 'mysql',
'host' => System::getEnv('_APP_DB_HOST', 'mariadb'),
'port' => System::getEnv('_APP_DB_PORT', '3306'),
'user' => System::getEnv('_APP_DB_USER', ''),
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -902,7 +902,7 @@ services:
- OPR_PROXY_HEALTHCHECK=enabled

mariadb:
image: mariadb:10.11 # fix issues when upgrading using: mysql_upgrade -u root -p
image: mysql:8.0.30 # fix issues when upgrading using: mysql_upgrade -u root -p
container_name: appwrite-mariadb
<<: *x-logging
networks:
Expand Down
Loading