From e684fde17d204901286ca5161b13eeca7ea9609f Mon Sep 17 00:00:00 2001 From: theartcher Date: Mon, 15 Dec 2025 10:40:09 +0100 Subject: [PATCH] Add report file and workflow file --- .github/workflows/deploy.yml | 22 ++++++++++++++++++++++ lighthouserc.js | 7 +++++++ 2 files changed, 29 insertions(+) create mode 100644 lighthouserc.js diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index b458c7b..d35997a 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -48,3 +48,25 @@ jobs: - name: Deploy to GitHub Pages id: deployment uses: actions/deploy-pages@v4 + + lighthouse: + name: Lighthouse + needs: deploy + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + - name: Use Node.js 20 + uses: actions/setup-node@v4 + with: + node-version: 20 + + - name: npm install, build + run: | + npm install + npm run build + + - name: run Lighthouse CI + run: | + npm install -g @lhci/cli@0.15.x + lhci autorun diff --git a/lighthouserc.js b/lighthouserc.js new file mode 100644 index 0000000..79c1d87 --- /dev/null +++ b/lighthouserc.js @@ -0,0 +1,7 @@ +module.exports = { + ci: { + upload: { + target: "temporary-public-storage", + }, + }, +};