Skip to content

Commit e102c0f

Browse files
committed
fix accessibility tests
1 parent dfa56d0 commit e102c0f

File tree

1 file changed

+3
-16
lines changed

1 file changed

+3
-16
lines changed

.github/workflows/accessibility-tests.yml

Lines changed: 3 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -29,29 +29,16 @@ jobs:
2929
- uses: actions/setup-node@v4
3030
with:
3131
node-version: 20
32-
- name: setup_busola
32+
- name: Run busola
3333
shell: bash
3434
run: |
35-
set -e
36-
npm ci
37-
npm run build
38-
npm i -g serve
35+
.github/scripts/setup_local_busola.sh
3936
- name: run_tests
4037
shell: bash
4138
env:
4239
ACC_AMP_TOKEN: ${{ secrets.ACC_AMP_TOKEN }}
4340
run: |
44-
k3d kubeconfig get kyma > tests/integration/fixtures/kubeconfig.yaml
45-
export CYPRESS_DOMAIN=http://localhost:3000
46-
serve -s build > busola.log &
47-
48-
pushd backend
49-
npm start > backend.log &
50-
popd
51-
52-
echo "waiting for server to be up..."
53-
while [[ "$(curl -s -o /dev/null -w ''%{http_code}'' "$CYPRESS_DOMAIN")" != "200" ]]; do sleep 5; done
54-
sleep 10
41+
k3d kubeconfig get k3dCluster > tests/lighthouse/fixtures/kubeconfig.yaml
5542
5643
cd tests/integration
5744
npm ci && ACC_AMP_TOKEN=$ACC_AMP_TOKEN npm run "test:accesibility"

0 commit comments

Comments
 (0)