fix(frontend): upload screenlog as artefact

Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
This commit is contained in:
Tilman Vatteroth 2023-10-23 19:02:00 +02:00 committed by Erik Michelson
parent a0bc8e98d0
commit d2a839b93b

View file

@ -186,7 +186,7 @@ jobs:
- name: Run server - name: Run server
working-directory: frontend/ working-directory: frontend/
run: (screen -dmS server -L yarn start) && sleep 3 && (tail -f screenlog.0 &) run: screen -dmS server -L yarn start
env: env:
NODE_ENV: test NODE_ENV: test
HOSTNAME: "127.0.0.1" HOSTNAME: "127.0.0.1"
@ -194,7 +194,7 @@ jobs:
PORT: 3001 PORT: 3001
- name: Wait for server - name: Wait for server
run: "curl -L --max-time 120 http://127.0.0.1:3001/" run: "sleep 3 && curl -L --max-time 120 http://127.0.0.1:3001/"
- name: Run cypress - name: Run cypress
run: yarn test:e2e:ci --filter=frontend run: yarn test:e2e:ci --filter=frontend
@ -208,6 +208,13 @@ jobs:
CYPRESS_CONTAINER_ID: ${{ matrix.containers }} CYPRESS_CONTAINER_ID: ${{ matrix.containers }}
- uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 # master - uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 # master
if: always()
with:
name: screenlog
path: frontend/screenlog.0
- uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 # master
if: always()
with: with:
name: screenshots name: screenshots
path: cypress/screenshots path: cypress/screenshots