healthcheck + logs
Some checks failed
/ get-version (push) Successful in 2s
/ astro-check (push) Successful in 12s
/ deploy-unlighthouse-files (push) Has been skipped
/ unlighthouse (push) Failing after 3s
/ deploy-unlighthouse-site (push) Has been skipped

This commit is contained in:
Firq 2024-10-22 17:54:37 +02:00
parent d91e9c4af5
commit 37a7e99e78
Signed by: Firq
GPG key ID: 3ACC61C8CEC83C20

View file

@ -10,8 +10,11 @@ jobs:
services: services:
website: website:
image: forgejo.neshweb.net/firq/firq-dev-website:preview image: forgejo.neshweb.net/firq/firq-dev-website:preview
ports: options: >-
- 8081:8081 --health-cmd "curl -sS http://website/ || echo exit 1"
--health-interval 10s
--health-timeout 5s
--health-retries 5
steps: steps:
- name: Checkout repository - name: Checkout repository
uses: https://code.forgejo.org/actions/checkout@v3 uses: https://code.forgejo.org/actions/checkout@v3
@ -21,8 +24,10 @@ jobs:
run: curl -v -o - "http://website:8081/" || true run: curl -v -o - "http://website:8081/" || true
- name: test - name: test
run: curl -v -o - "http://website/" || true run: curl -v -o - "http://website/" || true
- name: logs
run: docker logs "${{ job.services.website.id }}"
- name: Run unlighthouse - name: Run unlighthouse
run: unlighthouse-ci --site "http://website:8081/" --disable-dynamic-sampling run: unlighthouse-ci --site "http://website/" --disable-dynamic-sampling
- name: Prepare artifacts - name: Prepare artifacts
run: cp serve.json unlighthouse-reports run: cp serve.json unlighthouse-reports
- name: Upload reports - name: Upload reports