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", + }, + }, +};