This commit is contained in:
Firq 2025-04-07 23:27:36 +02:00
parent d19ded377f
commit b2e4ac27b6
Signed by: Firq
GPG key ID: 3ACC61C8CEC83C20
3 changed files with 6 additions and 7 deletions

View file

@ -24,15 +24,14 @@ jobs:
uses: https://code.forgejo.org/actions/checkout@v3 uses: https://code.forgejo.org/actions/checkout@v3
- name: Check availability - name: Check availability
run: | run: |
while [ "$(curl -o /dev/null -s -w '%{http_code}' http://website)" -ne 200 ]; while [ "$(curl -o /dev/null -s -w '%{http_code}' http://website:8081)" -ne 200 ];
do echo "Waiting..."; do echo "Waiting...";
curl -X GET http://website;
sleep 5; sleep 5;
done; done;
- name: Run unlighthouse - name: Run unlighthouse
run: unlighthouse-ci --site "http://website" run: unlighthouse-ci --site "http://website:8081"
- name: Replace URLs - name: Replace URLs
run: find ./unlighthouse-reports -type f | xargs sed -i "s|http://website|https://preview.firq.dev|g"; run: find ./unlighthouse-reports -type f | xargs sed -i "s|http://website:8081|https://preview.firq.dev|g";
- name: Prepare artifacts - name: Prepare artifacts
run: cp serve.json unlighthouse-reports run: cp serve.json unlighthouse-reports
- name: Upload reports - name: Upload reports

4
package-lock.json generated
View file

@ -1,12 +1,12 @@
{ {
"name": "@firq/fgosite", "name": "@firq/fgosite",
"version": "0.2.0-pre.69", "version": "0.2.0-pre.70",
"lockfileVersion": 3, "lockfileVersion": 3,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "@firq/fgosite", "name": "@firq/fgosite",
"version": "0.2.0-pre.69", "version": "0.2.0-pre.70",
"dependencies": { "dependencies": {
"@astro-community/astro-embed-youtube": "^0.5.6", "@astro-community/astro-embed-youtube": "^0.5.6",
"@astrojs/check": "^0.9.4", "@astrojs/check": "^0.9.4",

View file

@ -1,7 +1,7 @@
{ {
"name": "@firq/fgosite", "name": "@firq/fgosite",
"type": "module", "type": "module",
"version": "0.2.0-pre.69", "version": "0.2.0-pre.70",
"private": true, "private": true,
"scripts": { "scripts": {
"dev": "astro dev", "dev": "astro dev",