diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 1e05bff5..d84adb53 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -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' diff --git a/package.json b/package.json index 43b5ce30..d465fa1b 100644 --- a/package.json +++ b/package.json @@ -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"