mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2026-01-18 19:01:29 +00:00
shell wait
This commit is contained in:
parent
23da28d710
commit
04e06429bc
7
.github/workflows/test-e2e.yml
vendored
7
.github/workflows/test-e2e.yml
vendored
@ -65,9 +65,6 @@ jobs:
|
||||
cd ..
|
||||
yarn install
|
||||
|
||||
- name: Install wait-on (temporary)
|
||||
run: yarn add --no-lockfile wait-on
|
||||
|
||||
- name: Cache cypress
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
@ -135,9 +132,9 @@ jobs:
|
||||
docker load -i /tmp/mailserver.tar || true
|
||||
docker compose -f docker-compose.yml -f docker-compose.test.yml up --detach backend mailserver webapp
|
||||
|
||||
- name: Wait for webapp to be ready
|
||||
- name: Wait for webapp
|
||||
run: |
|
||||
npx wait-on http://localhost:3000 --timeout 120000
|
||||
for i in {1..30}; do curl -sf http://localhost:3000 && exit 0 || sleep 2; done; exit 1
|
||||
|
||||
- name: Full stack tests | run tests
|
||||
id: e2e-tests
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user