From 0a5a6971f4daea2dfd79f45ec3c61f183d759402 Mon Sep 17 00:00:00 2001 From: Patrik Oldsberg Date: Tue, 18 Apr 2023 11:02:53 +0200 Subject: [PATCH] workflows: fixes for verify_accessibility_core Signed-off-by: Patrik Oldsberg --- .github/workflows/verify_accessibility_core.yml | 7 ++++--- lighthouserc.js | 1 + 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/verify_accessibility_core.yml b/.github/workflows/verify_accessibility_core.yml index 459071ce75..6b6fc716f5 100644 --- a/.github/workflows/verify_accessibility_core.yml +++ b/.github/workflows/verify_accessibility_core.yml @@ -3,6 +3,8 @@ on: pull_request: branches: [master] paths: + - 'lighthouserc.js' + - '.github/workflows/verify_accessibility_core.yml' - 'plugins/catalog/**' - 'plugins/techdocs/**' - 'plugins/scaffolder/**' @@ -21,10 +23,9 @@ jobs: - name: yarn install uses: backstage/actions/yarn-install@v0.6.3 with: - cache-prefix: ${{ runner.os }}-16.x + cache-prefix: ${{ runner.os }}-v16.x - name: run Lighthouse CI run: | - npm install -g @lhci/cli@0.11.x - lhci autorun + yarn dlx @lhci/cli@0.11.x autorun env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/lighthouserc.js b/lighthouserc.js index 5d7e0e8017..18b2bee5bb 100644 --- a/lighthouserc.js +++ b/lighthouserc.js @@ -42,6 +42,7 @@ module.exports = { preset: 'desktop', }, startServerCommand: 'yarn dev', + startServerReadyPattern: 'webpack compiled successfully', startServerReadyTimeout: 600000, numberOfRuns: 1, puppeteerScript: './.lighthouseci/scripts/guest-auth.js',