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

This commit is contained in:
Robin Grenzdörfer 2023-12-05 15:20:50 +00:00
parent f22e0ffda2
commit e25d6bb5b6

View File

@ -9,6 +9,34 @@ jobs:
image: gitbase.de/actions/ubuntu:latest image: gitbase.de/actions/ubuntu:latest
volumes: volumes:
- /data:/data - /data:/data
services:
mongo:
image: mongo:4.2
ports:
- 27017:27017
maildev:
image: maildev/maildev
ports:
- 80:80
- 25:25
liveserver:
image: gitbase.de/cms/live-server
ports:
- 80:80
tibi-server:
image: gitbase.de/cms/tibi-server
ports:
- 8080:8080
env:
DB_DIAL: mongodb://mongo
API_PORT: 8080
MAIL_HOST: maildev:25
SECURITY_ALLOWABSOLUTEPATHS: "true"
SECURITY_ALLOWUPPERPATHS: "true"
SECURITY_ALLOWRELATIVEPATHS: "true"
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
with: with:
@ -27,6 +55,28 @@ jobs:
npm install -g yarn npm install -g yarn
yarn install yarn install
- name: Build Live Server Docker Image
run: |
docker build -t liveserver-image -f gitbase.de/cms/live-server .
- name: Start Live Server
run: |
docker run -d -p 80:80 liveserver-image
- name: Build Tibi Server Docker Image
run: |
docker build -t tibiserver-image \
-f gitbase.de/cms/tibi-server .
- name: Start Tibi Server
run: |
docker run -d -p 8080:8080 tibiserver-image \
-e API_PORT=8080 \
-e DB_DIAL=mongodb://mongo \
-e MAIL_HOST=maildev:25 \
- name: modify config - name: modify config
run: | run: |
sed -i 's#\(sentryEnvironment.*\)".*"#\1"${GITHUB_REF_NAME}"#g' frontend/src/config.ts sed -i 's#\(sentryEnvironment.*\)".*"#\1"${GITHUB_REF_NAME}"#g' frontend/src/config.ts
@ -87,7 +137,7 @@ jobs:
- name: Lighthouse Analysis - name: Lighthouse Analysis
run: | run: |
mkdir -p ${{ github.workspace }}/lighthouse-reports mkdir -p ${{ github.workspace }}/lighthouse-reports
docker run --rm -v ${{ github.workspace }}/lighthouse-reports:/lighthouse-reports femtopixel/google-lighthouse https://www.webmakers.de/ --output json --output-path /lighthouse-reports/lighthouse-report.json --chrome-flags="--headless --no-sandbox --disable-dev-shm-usage" docker run --rm -v ${{ github.workspace }}/lighthouse-reports:/lighthouse-reports femtopixel/google-lighthouse http://liveserver/ --output json --output-path ${{ github.workspace }}/lighthouse-reports/lighthouse-report.json --chrome-flags="--headless --no-sandbox --disable-dev-shm-usage"
# Notify-Lighthouse Step # Notify-Lighthouse Step
- name: Notify Lighthouse - name: Notify Lighthouse