From 40045fa99b496965117187cf5621f555312b20a8 Mon Sep 17 00:00:00 2001 From: HellgrenR Date: Thu, 16 May 2024 09:21:41 +0200 Subject: [PATCH 1/2] Now runs build in Client --- .github/workflows/testDeploy.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/testDeploy.yml b/.github/workflows/testDeploy.yml index a15b7d1..8031e21 100644 --- a/.github/workflows/testDeploy.yml +++ b/.github/workflows/testDeploy.yml @@ -26,7 +26,7 @@ jobs: - name: Install dependencies run: cd ./Client && npm install - name: Build - run: npm run build + run: cd ./Client && npm run build - name: Start server run: nohup node index.js & # Install Cypress dependencies and run the tests. From ef968a606cd379f3f7baf011d23cf694ee053c0c Mon Sep 17 00:00:00 2001 From: HellgrenR Date: Thu, 16 May 2024 09:24:50 +0200 Subject: [PATCH 2/2] Trying to run dist in workflows --- .github/workflows/testDeploy.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/testDeploy.yml b/.github/workflows/testDeploy.yml index 8031e21..0a7a061 100644 --- a/.github/workflows/testDeploy.yml +++ b/.github/workflows/testDeploy.yml @@ -27,8 +27,14 @@ jobs: run: cd ./Client && npm install - name: Build run: cd ./Client && npm run build - - name: Start server - run: nohup node index.js & + + - name: Install http-server + run: cd ./Client && npm install -g http-server + - name: Serve built files + run: | + cd ./Client/dist + http-server -p 8080 + # Install Cypress dependencies and run the tests. - name: Install Cypress Dependencies # Change the directory to the cypress folder.