mirror of
https://github.com/jikan-me/jikan-rest.git
synced 2025-02-20 11:23:35 +08:00
updated tests workflow
This commit is contained in:
parent
77f6090dae
commit
fef2759592
3
.github/workflows/tests.yml
vendored
3
.github/workflows/tests.yml
vendored
@ -40,6 +40,9 @@ jobs:
|
||||
run: |
|
||||
docker run --rm --network host mongo:6 mongosh localhost:27017 --eval "db.runCommand({ serverStatus: 1 })"
|
||||
|
||||
- name: Show Typesense server status
|
||||
run: curl -s -f http://localhost:8108/health
|
||||
|
||||
- name: Setup extension cache
|
||||
id: extcache
|
||||
uses: shivammathur/cache-extensions@v1
|
||||
|
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
$db_username = env('DB_USERNAME', 'admin');
|
||||
$db_username = env('DB_USERNAME', env("APP_ENV") === "testing" ? "" : "admin");
|
||||
$dsn = "mongodb://";
|
||||
if (empty($db_username)) {
|
||||
$dsn .= env('DB_HOST', 'localhost').":".env('DB_PORT', 27017)."/".env('DB_ADMIN', 'admin');
|
||||
|
Loading…
x
Reference in New Issue
Block a user