mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2025-12-18 05:28:27 +03:00
set up postgres CI route
uses env flag TEST_POSTGRES since the sqlite test also runs with env flag CI true
This commit is contained in:
@@ -23,6 +23,12 @@ async function init() {
|
||||
|
||||
await initDb();
|
||||
|
||||
const dbMode = config.mysql ? 'mysql'
|
||||
: config.postgres ? 'postgres'
|
||||
: 'sqlite'
|
||||
// print database mode
|
||||
console.log('Database Mode: ' + dbMode)
|
||||
|
||||
// Instantiate a Mocha instance.
|
||||
const mocha = new Mocha();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user