diff --git a/.github/workflows/pull-integration-cluster-k3d.yml b/.github/workflows/pull-integration-cluster-k3d.yml index eae5c6fd1a..a507dfb53f 100644 --- a/.github/workflows/pull-integration-cluster-k3d.yml +++ b/.github/workflows/pull-integration-cluster-k3d.yml @@ -45,17 +45,12 @@ jobs: set -e npm ci npm run build - npm i -g serve - name: run_tests shell: bash run: | k3d kubeconfig get k3dCluster > tests/integration/fixtures/kubeconfig.yaml - export CYPRESS_DOMAIN=http://localhost:3000 - serve -s build > busola.log & - - pushd backend - npm start > backend.log & - popd + export CYPRESS_DOMAIN=http://localhost:3001 + npm run start echo "waiting for server to be up..." while [[ "$(curl -s -o /dev/null -w ''%{http_code}'' "$CYPRESS_DOMAIN")" != "200" ]]; do sleep 5; done diff --git a/.github/workflows/pull-integration-namespace-k3d.yml b/.github/workflows/pull-integration-namespace-k3d.yml index 1acd4901c4..4dc4bffaf6 100644 --- a/.github/workflows/pull-integration-namespace-k3d.yml +++ b/.github/workflows/pull-integration-namespace-k3d.yml @@ -45,17 +45,12 @@ jobs: set -e npm ci npm run build - npm i -g serve - name: run_tests shell: bash run: | k3d kubeconfig get k3dCluster > tests/integration/fixtures/kubeconfig.yaml - export CYPRESS_DOMAIN=http://localhost:3000 - serve -s build > busola.log & - - pushd backend - npm start > backend.log & - popd + export CYPRESS_DOMAIN=http://localhost:3001 + npm run start echo "waiting for server to be up..." while [[ "$(curl -s -o /dev/null -w ''%{http_code}'' "$CYPRESS_DOMAIN")" != "200" ]]; do sleep 5; done diff --git a/.github/workflows/pull-lighthouse.yml b/.github/workflows/pull-lighthouse.yml index 011d3dc150..463e2f131e 100644 --- a/.github/workflows/pull-lighthouse.yml +++ b/.github/workflows/pull-lighthouse.yml @@ -43,12 +43,8 @@ jobs: shell: bash run: | k3d kubeconfig get k3dCluster > tests/lighthouse/fixtures/kubeconfig.yaml - export DOMAIN=http://localhost:3000 - serve -s build > busola.log & - - pushd backend - npm start > backend.log & - popd + export DOMAIN=http://localhost:3001 + npm run start echo "waiting for server to be up..." while [[ "$(curl -s -o /dev/null -w ''%{http_code}'' "$DOMAIN")" != "200" ]]; do sleep 5; done