updated workflow file

This commit is contained in:
Andris Reinman 2022-07-05 12:24:45 +03:00
parent 8a16aeaf71
commit 019a4222be
No known key found for this signature in database
GPG key ID: DC6C83F4D584D364
2 changed files with 3 additions and 3 deletions

View file

@ -45,8 +45,7 @@ jobs:
node-version: ${{ matrix.node }}
- run: npm install
- name: Run tests
run: npm test
run: npm runtest
env:
APPCONF_dbs_redis: redis://redis:6379/1
APPCONF_dbs_mongodb: mongodb://wildduck:wildduck@mongo:27017/wildduck-test
NODE_CONFIG_ONLY: 'true'

View file

@ -4,7 +4,8 @@
"description": "IMAP/POP3 server built with Node.js and MongoDB",
"main": "server.js",
"scripts": {
"test": "mongo --eval 'db.dropDatabase()' wildduck-test && redis-cli -n 13 flushdb && NODE_ENV=test grunt",
"test": "mongo --eval 'db.dropDatabase()' wildduck-test && redis-cli -n 13 flushdb && npm run runtest",
"runtest": "NODE_ENV=test grunt",
"apidoc": "apidoc -i lib/api/ -o docs/api/",
"show": "NODE_CONFIG_ONLY=true node server.js",
"start": "node server.js"