Skip to content

Commit

Permalink
adjust running of integration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dbadura committed Jan 8, 2025
1 parent 063ef28 commit a26faa2
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 20 deletions.
9 changes: 2 additions & 7 deletions .github/workflows/pull-integration-cluster-k3d.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
9 changes: 2 additions & 7 deletions .github/workflows/pull-integration-namespace-k3d.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 2 additions & 6 deletions .github/workflows/pull-lighthouse.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a26faa2

Please sign in to comment.