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

This commit is contained in:
Robin Grenzdörfer 2023-12-06 13:46:46 +00:00
parent 28cdf569a7
commit 4ec39882a8

View File

@ -50,9 +50,6 @@ jobs:
- name: setup node 18
uses: actions/setup-node@v3
# with:
# node-version: 18
# cache: yarn
- name: install dependencies
env:
@ -86,6 +83,24 @@ jobs:
echo ______ frontend/spa.html ______
cat frontend/spa.html
- name: build
env:
FORCE_COLOR: "true"
run: |
yarn build
#- name: build ssr
# env:
# FORCE_COLOR: "true"
# run: |
# yarn build:server
- name: build legacy
env:
FORCE_COLOR: "true"
run: |
yarn build:legacy
- name: Wait for Live Server
run: |
attempts=0
@ -94,11 +109,6 @@ jobs:
if [ $attempts -eq $max_attempts ]; then
echo "Live server not ready after $max_attempts attempts"
echo "${{ toJson(job) }}"
echo "${{ job.services.live-server.id }}"
echo "${{ job.services.tibi-server.id }}"
echo "${{ job.services.mongo.id }}"
curl -v http://127.0.0.1:8080
curl -v http://127.0.0.1:8081
curl -v http://live-server:8081
exit 1
fi
@ -119,23 +129,6 @@ jobs:
docker logs "${{ job.services.live-server.id }}"
curl -v http://live-server:8081
- name: stop Live Server
run: |
docker stop live-server-container
docker rm live-server-container
#- name: staging api testtest
# if: github.ref == 'refs/heads/dev'
# run: |
# targetDir=/data/${GITHUB_REPOSITORY}/${GITHUB_REF_NAME}
# mkdir -p targetDir
# rsync -av api $targetDir/
# mkdir -p $targetDir/frontend/dist
# rsync -av frontend/dist/ $targetDir/frontend/dist/
#- name: staging frontend
# if: github.ref == 'refs/heads/dev'
# run: |
# docker compose -p ${GITHUB_REF_NAME}-${GITHUB_REPOSITORY_NAME}-${GITHUB_REPOSITORY_OWNER} up -d --build --remove-orphans
- name: Install Chrome
run: |
wget -q -O - https://dl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
@ -161,24 +154,6 @@ jobs:
-v ${{ github.workspace }}/tmp:/lighthouse-reports \
drillster/drone-email /tmp/lighthouse-report.json
- name: build
env:
FORCE_COLOR: "true"
run: |
yarn build
#- name: build ssr
# env:
# FORCE_COLOR: "true"
# run: |
# yarn build:server
- name: build legacy
env:
FORCE_COLOR: "true"
run: |
yarn build:legacy
- name: deploy
if: github.ref == 'refs/heads/master'
env: