Skip to content

Commit

Permalink
Use in-memory db for CI
Browse files Browse the repository at this point in the history
  • Loading branch information
holzmaster committed Mar 26, 2024
1 parent 3780da7 commit 2ef10ea
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ jobs:
docker run \
--rm \
-e NODE_ENV=development \
-e DATABASE_PATH=:memory: \
-v "$PWD/config.json:/app/config.json" \
-v "$PWD/aoc.config.json:/app/aoc.config.json" \
csz-bot:latest --dry-run
Expand Down
2 changes: 1 addition & 1 deletion src/context.ts
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ export async function createBotContext(
),
rootDir: path.resolve(""),
srcDir: path.resolve("src"),
databasePath: path.resolve("storage.db"),
databasePath: process.env.DATABASE_PATH ?? path.resolve("storage.db"),
bannersDir: path.resolve("banners"),
soundsDir: path.resolve("sounds"),
commandDir: path.resolve("src/commands"),
Expand Down

0 comments on commit 2ef10ea

Please sign in to comment.