diff --git a/.github/workflows/testDeploy.yml b/.github/workflows/testDeploy.yml index a15b7d1..0a7a061 100644 --- a/.github/workflows/testDeploy.yml +++ b/.github/workflows/testDeploy.yml @@ -26,9 +26,15 @@ jobs: - name: Install dependencies run: cd ./Client && npm install - name: Build - run: npm run build - - name: Start server - run: nohup node index.js & + run: cd ./Client && npm run build + + - 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.