diff --git a/.github/workflows/lxl-web.yml b/.github/workflows/lxl-web.yml index adb70754c..11fa6f048 100644 --- a/.github/workflows/lxl-web.yml +++ b/.github/workflows/lxl-web.yml @@ -47,12 +47,17 @@ jobs: - name: Install dependencies run: npm ci - name: Build and run Lighthouse CI + shell: bash env: API_URL: ${{ secrets.API_URL }} ID_URL: ${{ secrets.ID_URL }} + LHCI_SERVER_BASE_URL: ${{ secrets.LHCI_SERVER_BASE_URL }} + LHCI_TOKEN: ${{ secrets.LHCI_TOKEN }} LHCI_GITHUB_APP_TOKEN: ${{ secrets.LHCI_GITHUB_APP_TOKEN }} + LHCI_SERVER_USERNAME: ${{ secrets.LHCI_SERVER_USERNAME }} + LHCI_SERVER_PASSWORD: ${{ secrets.LHCI_SERVER_PASSWORD }} PUBLIC_USE_SUPERSEARCH: ${{ env.PUBLIC_USE_SUPERSEARCH }} run: | npm run build - npm install -g @lhci/cli@0.13.x - lhci autorun --upload.githubToken="$LHCI_GITHUB_TOKEN" || echo "LHCI failed!" + npm install -g @lhci/cli@0.14.0 + lhci autorun --upload.target=lhci --upload.serverBaseUrl="$LHCI_SERVER_BASE_URL" --upload.token="$LHCI_TOKEN" --upload.githubToken="$LHCI_GITHUB_APP_TOKEN" --upload.basicAuth.username="$LHCI_SERVER_USERNAME" --upload.basicAuth.password="$LHCI_SERVER_PASSWORD" || echo "LHCI failed!" diff --git a/lxl-web/.gitignore b/lxl-web/.gitignore index 60f5097ff..045614351 100644 --- a/lxl-web/.gitignore +++ b/lxl-web/.gitignore @@ -9,3 +9,4 @@ node_modules vite.config.js.timestamp-* vite.config.ts.timestamp-* /test-results +.lighthouseci/ \ No newline at end of file