From 79643282ea0bdd8d75cf5fffa7946093294c44a5 Mon Sep 17 00:00:00 2001 From: Elliot DeNolf Date: Wed, 15 Apr 2020 00:20:17 -0400 Subject: [PATCH] Use nohup to run express server --- .github/workflows/tests.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 75d71e911f..e69502a057 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -3,7 +3,7 @@ name: Node.js CI on: [push] jobs: - build: + test: runs-on: ubuntu-latest strategy: matrix: @@ -16,6 +16,9 @@ jobs: with: node-version: ${{ matrix.node-version }} - run: npm install - - run: npm test # In-memory db + api tests + - run: nohup npm run server & + env: + NODE_ENV: test + - run: npm run test:int # In-memory db + api tests env: CI: true