diff --git a/.github/workflows/lighthouse.yml b/.github/workflows/lighthouse.yml new file mode 100644 index 00000000..467609b5 --- /dev/null +++ b/.github/workflows/lighthouse.yml @@ -0,0 +1,20 @@ +name: CI +on: [push] +jobs: + lhci: + name: Lighthouse + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Use Node.js 16.x + uses: actions/setup-node@v3 + with: + node-version: 16.x + - name: npm install, build + run: | + npm install + npm run build + - name: run Lighthouse CI + run: | + npm install -g @lhci/cli@0.13.x + lhci autorun diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index ebac47a8..099719fd 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -3,7 +3,7 @@ ci: autoupdate_schedule: "quarterly" repos: - repo: https://github.com/astral-sh/ruff-pre-commit - rev: "v0.4.3" + rev: "v0.4.5" hooks: - id: ruff args: ["--fix", "--unsafe-fixes"] @@ -42,7 +42,7 @@ repos: args: ["--fix=lf"] - id: trailing-whitespace - repo: https://github.com/codespell-project/codespell - rev: v2.2.6 + rev: v2.3.0 hooks: - id: codespell args: ["--write-changes"] diff --git a/lighthouserc.js b/lighthouserc.js new file mode 100644 index 00000000..79c1d872 --- /dev/null +++ b/lighthouserc.js @@ -0,0 +1,7 @@ +module.exports = { + ci: { + upload: { + target: "temporary-public-storage", + }, + }, +};