mirror of
https://github.com/bartvdbraak/hellob.art.git
synced 2025-04-27 09:31:21 +00:00
fix: use unlighthouse-ci
instead
This commit is contained in:
parent
6fb01d6ae7
commit
a3ec7c167c
1 changed files with 7 additions and 7 deletions
14
.github/workflows/unlighthouse-report.yaml
vendored
14
.github/workflows/unlighthouse-report.yaml
vendored
|
@ -47,14 +47,14 @@ jobs:
|
||||||
- name: Start Preview and Get Preview URL
|
- name: Start Preview and Get Preview URL
|
||||||
run: |
|
run: |
|
||||||
pnpm run preview --port ${{ env.PORT }} & echo $! > preview_pid
|
pnpm run preview --port ${{ env.PORT }} & echo $! > preview_pid
|
||||||
sleep 3
|
|
||||||
PREVIEW_URL="http://localhost:${{ env.PORT }}"
|
|
||||||
echo "PREVIEW_URL=$PREVIEW_URL" >> $GITHUB_ENV
|
|
||||||
|
|
||||||
- name: Run unlighthouse
|
- name: Install Dependencies
|
||||||
|
run: pnpm add -g @unlighthouse/cli puppeteer
|
||||||
|
|
||||||
|
- name: Run Unlighthouse
|
||||||
run: |
|
run: |
|
||||||
npx unlighthouse \
|
unlighthouse-ci \
|
||||||
--site "${{ env.PREVIEW_URL }}" \
|
--site "http://localhost:${{ env.PORT }}" \
|
||||||
--reporter jsonExpanded \
|
--reporter jsonExpanded \
|
||||||
--build-static
|
--build-static
|
||||||
|
|
||||||
|
@ -68,7 +68,7 @@ jobs:
|
||||||
id: create_result_content
|
id: create_result_content
|
||||||
uses: actions/github-script@v6.4.1
|
uses: actions/github-script@v6.4.1
|
||||||
with:
|
with:
|
||||||
github-token: ${{secrets.GITHUB_TOKEN}}
|
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
script: |
|
script: |
|
||||||
const fs = require('fs');
|
const fs = require('fs');
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue