From fed779a721032b7ae3d7f5804416a163fda225bb Mon Sep 17 00:00:00 2001 From: aferreira-deo Date: Tue, 4 Jun 2024 16:45:52 +0200 Subject: [PATCH] add lighthouse on cicd workflow --- .github/workflows/deploy.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index fc6a927..9a205ae 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -18,3 +18,10 @@ jobs: with: github_token: ${{ secrets.GITHUB_TOKEN }} publish_dir: ./src + + - name: Install Lighthouse CI + run: npm install @lhci/cli + + - name: Run Lighthouse CI + run: | + lhci autorun --collect.staticDistDir=./src --assert.preset=lighthouse:recommended