From 5149a81a7c19da3e4d255d27c4b0dff1b958b98b Mon Sep 17 00:00:00 2001 From: Harminder Virk Date: Tue, 1 Mar 2022 09:38:05 +0530 Subject: [PATCH] ci: attempt to fix sqlite3 errors --- docker-compose.yml | 4 ++++ test-helpers/index.ts | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/docker-compose.yml b/docker-compose.yml index 6385b576..dbf1a7f7 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,6 +1,7 @@ version: '3.4' services: mysql_legacy: + platform: linux/x86_64 image: mysql:5.7 environment: MYSQL_DATABASE: lucid @@ -10,6 +11,7 @@ services: ports: - '3306:3306' mysql_replica_1: + platform: linux/x86_64 image: mysql:5.7 environment: MYSQL_DATABASE: lucid @@ -19,6 +21,7 @@ services: ports: - '3304:3306' mysql_replica_2: + platform: linux/x86_64 image: mysql:5.7 environment: MYSQL_DATABASE: lucid @@ -28,6 +31,7 @@ services: ports: - '3303:3306' mysql: + platform: linux/x86_64 image: mysql:8.0 command: --default-authentication-plugin=mysql_native_password --sync_binlog=0 --innodb_doublewrite=OFF --innodb-flush-log-at-trx-commit=0 --innodb-flush-method=nosync environment: diff --git a/test-helpers/index.ts b/test-helpers/index.ts index c9e99f8e..86407830 100644 --- a/test-helpers/index.ts +++ b/test-helpers/index.ts @@ -58,7 +58,7 @@ export function getConfig(): ConnectionConfig { switch (process.env.DB) { case 'sqlite': return { - client: 'sqlite', + client: 'sqlite3', connection: { filename: join(fs.basePath, 'db.sqlite'), },