Skip to content

chore(deps): update dependency @playwright/test to ^1.50.1 #822

chore(deps): update dependency @playwright/test to ^1.50.1

chore(deps): update dependency @playwright/test to ^1.50.1 #822

Workflow file for this run

name: Lighthouse CI
on: [push, pull_request]
jobs:
lighthouse:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
- name: Setup pnpm
uses: pnpm/action-setup@v2
with:
version: 8
run_install: false
- name: Get pnpm store directory
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
- name: Setup pnpm cache
uses: actions/cache@v4
with:
path: ${{ env.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Install dependencies
run: pnpm install
- name: Build project
run: pnpm build
- name: Start server
run: |
pnpm start &
echo "Waiting for server to be ready..."
while ! nc -z localhost 3000; do
sleep 5
done
# Additional wait to ensure full initialization
sleep 20
- name: Run Lighthouse CI
run: |
pnpm lhci:perf
pnpm lhci:desktop
env:
LHCI_GITHUB_APP_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Stop server
if: always()
run: |
pkill -f "next start" || true