lighthouse
Some checks failed
deploy to production / deploy (push) Failing after 29s

This commit is contained in:
Robin Grenzdörfer 2023-12-05 21:26:36 +00:00
parent 5c4ef67bd7
commit 4b9b4ccf4e

View File

@ -83,10 +83,10 @@ jobs:
- name: Start Live Server - name: Start Live Server
run: | run: |
docker run -d -p 80:80 -v ${{ github.workspace }}:/usr/src/app gitbase.de/robin/live-server docker run -d -p 8081:8081 -v ${{ github.workspace }}:/usr/src/app gitbase.de/robin/live-server
- name: Test HTTP Request - name: Test HTTP Request
run: | run: |
curl http://127.0.0.1:80 curl http://127.0.0.1:8081
#- name: staging api testtest #- name: staging api testtest
# if: github.ref == 'refs/heads/dev' # if: github.ref == 'refs/heads/dev'
@ -113,7 +113,7 @@ jobs:
- name: Lighthouse Analysis - name: Lighthouse Analysis
run: | run: |
yarn add lighthouse yarn add lighthouse
npx lighthouse http://127.0.0.1:80 --output json --output-path /tmp/lighthouse-report.json --chrome-flags="--headless --no-sandbox --disable-dev-shm-usage" npx lighthouse http://127.0.0.1:8081 --output json --output-path /tmp/lighthouse-report.json --chrome-flags="--headless --no-sandbox --disable-dev-shm-usage"
# Notify-Lighthouse Step # Notify-Lighthouse Step
- name: Notify Lighthouse - name: Notify Lighthouse