From 3747d335f5460841ea78f5d9dc663a260a7e4a3d Mon Sep 17 00:00:00 2001 From: "cartsnitch-engineer[bot]" <269717931+cartsnitch-engineer[bot]@users.noreply.github.com> Date: Mon, 30 Mar 2026 18:56:11 +0000 Subject: [PATCH] feat(ci): add Lighthouse CI performance checks --- .github/workflows/ci.yml | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6ca0e0f..3d9e9b8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -60,6 +60,22 @@ jobs: - run: npx playwright install --with-deps chromium - run: npx playwright test + lighthouse: + runs-on: runners-cartsnitch + needs: [test] + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: "20" + cache: npm + - run: npm ci + - run: npm run build + - name: Run Lighthouse CI + run: | + npm install -g @lhci/cli + lhci autorun + build-and-push: runs-on: runners-cartsnitch needs: [lint, test, e2e] @@ -164,7 +180,7 @@ jobs: tags: | type=sha,prefix=sha- type=raw,value=${{ steps.calver.outputs.version }},enable=${{ github.ref == 'refs/heads/main' }} - type=raw,value=latest,enable=${{ github.ref == 'refs/heads/main' }} + type=raw,value=latest,enable=${{ github.ref == 'refs/heads_main' }} - name: Build and push auth Docker image uses: docker/build-push-action@v6