Skip to content

Commit 9ba77a3

Browse files
committed
ci: try to fix mariadb
1 parent 3b3d77c commit 9ba77a3

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

.github/workflows/nodejs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ jobs:
107107
image: mariadb:${{ matrix.mariadb-version }}
108108
env:
109109
MARIADB_DATABASE: sequelize
110-
MARIADB_ROOT_PASSWORD: root_password
110+
MARIADB_ROOT_PASSWORD: password
111111
MARIADB_USER: sequelize
112112
MARIADB_PASSWORD: password
113113
ports:

test/connection.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,11 @@ export default (DB?: 'postgres' | 'mysql' | 'mariadb' | (string & {})) => {
2929
} else if (DB === 'mariadb') {
3030
return new Sequelize(
3131
process.env.MARIADB_DATABASE ?? 'sequelize',
32-
process.env.MARIADB_USER ?? 'root',
33-
process.env.MARIADB_PASSWORD ?? '',
32+
process.env.MARIADB_USER ?? 'sequelize',
33+
process.env.MARIADB_PASSWORD ?? 'password',
3434
{
35-
host: '127.0.0.1',
35+
host: 'localhost',
36+
port: 3306,
3637
dialect: 'mariadb',
3738
logging,
3839
},

0 commit comments

Comments
 (0)