updated workflow file

This commit is contained in:
Andris Reinman 2022-07-05 12:44:29 +03:00
parent a7b8d543d5
commit efdf75f484
No known key found for this signature in database
GPG key ID: DC6C83F4D584D364
2 changed files with 5 additions and 2 deletions

View file

@ -30,7 +30,10 @@ jobs:
env:
MONGO_INITDB_ROOT_USERNAME: wildduck
MONGO_INITDB_ROOT_PASSWORD: wildduck
MONGO_INITDB_DATABASE: wildduck-test
MONGO_INITDB_DATABASE: 'wildduck-test'
command: [--auth]
volumes:
- ./init-mongo.js:/docker-entrypoint-initdb.d/init-mongo-js.js:ro
options: >-
--health-cmd mongo
--health-interval 10s

View file

@ -5,7 +5,7 @@
"main": "server.js",
"scripts": {
"test": "mongo --eval 'db.dropDatabase()' wildduck-test && redis-cli -n 13 flushdb && npm run runtest",
"runtest": "NODE_CONFIG_ONLY=true npm start && NODE_ENV=test grunt",
"runtest": "env && NODE_CONFIG_ONLY=true npm start && NODE_ENV=test grunt",
"apidoc": "apidoc -i lib/api/ -o docs/api/",
"show": "NODE_CONFIG_ONLY=true node server.js",
"start": "node server.js"