fix: use unlighthouse-ci instead

This commit is contained in:
Bart van der Braak 2023-07-31 23:05:21 +02:00
parent 6fb01d6ae7
commit a3ec7c167c

View file

@ -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