From a3ec7c167c3503892da3b60932803eaebb53a990 Mon Sep 17 00:00:00 2001 From: Bart van der Braak Date: Mon, 31 Jul 2023 23:05:21 +0200 Subject: [PATCH] fix: use `unlighthouse-ci` instead --- .github/workflows/unlighthouse-report.yaml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/unlighthouse-report.yaml b/.github/workflows/unlighthouse-report.yaml index 7810f4c..320e17b 100644 --- a/.github/workflows/unlighthouse-report.yaml +++ b/.github/workflows/unlighthouse-report.yaml @@ -47,14 +47,14 @@ jobs: - name: Start Preview and Get Preview URL run: | 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: | - npx unlighthouse \ - --site "${{ env.PREVIEW_URL }}" \ + unlighthouse-ci \ + --site "http://localhost:${{ env.PORT }}" \ --reporter jsonExpanded \ --build-static @@ -68,7 +68,7 @@ jobs: id: create_result_content uses: actions/github-script@v6.4.1 with: - github-token: ${{secrets.GITHUB_TOKEN}} + github-token: ${{ secrets.GITHUB_TOKEN }} script: | const fs = require('fs');