From 5bb0a5817be59c505e82d8572da2369d010d722f 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 | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e2f0e55..3d028f6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -46,6 +46,22 @@ jobs: - name: Run tests run: npx vitest run + 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] @@ -150,7 +166,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 @@ -201,5 +217,5 @@ jobs: git config user.name "cartsnitch-ci[bot]" git config user.email "cartsnitch-ci[bot]@users.noreply.github.com" git add apps/overlays/dev/kustomization.yaml - git commit -m "ci(dev): update cartsnitch and auth images to ${{ needs.build-and-push.outputs.calver_tag }}" + git commit -m "ci(ev): update cartsnitch and auth images to ${{ needs.build-and-push.outputs.calver_tag }}" git push origin main