From 9bebd356ca64d213b9de73ff219eb8df6f13a5f5 Mon Sep 17 00:00:00 2001 From: Sabir Hassan Date: Thu, 6 Apr 2023 16:28:33 +0500 Subject: [PATCH] chore: deamonize npm start process --- .github/workflows/build.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 0c32050..04ff578 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -64,6 +64,9 @@ jobs: - name: Start Open VPN 3 run: openvpn3 session-start --config .github/vpn/config.ovpn + - name: install pm2 + run: npm i -g pm2 + - name: Deploy sasjs-tests run: | npm install -g replace-in-files-cli @@ -74,7 +77,8 @@ jobs: replace-in-files --regex='"userName".*' --replacement='"userName":"${{ secrets.SASJS_USERNAME }}",' ./public/config.json replace-in-files --regex='"password".*' --replacement='"password":"${{ secrets.SASJS_PASSWORD }}",' ./public/config.json replace-in-files --regex='"serverType".*' --replacement='"serverType":"SASJS",' ./public/config.json - npm run update:adapter && npm start + npm run update:adapter + pm2 start --name sasjs-test npm -- start - name: Run cypress on sasjs run: |