mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-21 17:26:29 -05:00
fix(ci): fix server start in cypress e2e test
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
This commit is contained in:
parent
33629b945d
commit
44e0ae40b5
1 changed files with 4 additions and 4 deletions
8
.github/workflows/e2e-tests.yml
vendored
8
.github/workflows/e2e-tests.yml
vendored
|
@ -159,8 +159,8 @@ jobs:
|
|||
matrix:
|
||||
containers: [ 1, 2, 3 ]
|
||||
steps:
|
||||
- name: Install jq and zstd
|
||||
run: apt-get update && apt-get install -y jq zstd
|
||||
- name: Install additional packages
|
||||
run: apt-get update && apt-get install -y jq zstd screen
|
||||
|
||||
- name: Check out repo
|
||||
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
|
||||
|
@ -182,12 +182,12 @@ jobs:
|
|||
|
||||
- name: Run server
|
||||
working-directory: frontend/
|
||||
run: yarn start:ci &
|
||||
run: (screen -dmS server -L yarn start:ci) && sleep 3 && (tail -f screenlog.0 &)
|
||||
env:
|
||||
NODE_ENV: test
|
||||
|
||||
- name: Wait for server
|
||||
run: "sleep 3 && curl --max-time 120 http://127.0.0.1:3001/"
|
||||
run: "curl -L --max-time 120 http://127.0.0.1:3001/"
|
||||
|
||||
- name: Run cypress
|
||||
run: yarn turbo run test:e2e:ci --filter=frontend
|
||||
|
|
Loading…
Reference in a new issue