From 44e0ae40b59ebc384e7b13f8c44b3340ac871447 Mon Sep 17 00:00:00 2001 From: Tilman Vatteroth Date: Thu, 4 May 2023 22:26:26 +0200 Subject: [PATCH] fix(ci): fix server start in cypress e2e test Signed-off-by: Tilman Vatteroth --- .github/workflows/e2e-tests.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/e2e-tests.yml b/.github/workflows/e2e-tests.yml index 29ec19c95..398b2c237 100644 --- a/.github/workflows/e2e-tests.yml +++ b/.github/workflows/e2e-tests.yml @@ -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