diff --git a/.github/workflows/lighthouse.yml b/.github/workflows/lighthouse.yml index 512d4cbdb..760f33fe2 100644 --- a/.github/workflows/lighthouse.yml +++ b/.github/workflows/lighthouse.yml @@ -15,14 +15,17 @@ jobs: matrix: node-version: [20.x] steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v2 - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v3 + uses: actions/setup-node@v1 with: node-version: ${{ matrix.node-version }} - run: npm install + - run: npm install -g http-server + - run: npm run build --if-present + - run: http-server -s & - name: Run Lighthouse run: | - npm install -g @lhci/cli@0.13.x - npm run build --if-present + npm install -g lhci/cli@0.13.x + sleep 90 lhci autorun