Skip to content

Commit c88cac4

Browse files
committed
lighthouse
1 parent 9aaae89 commit c88cac4

File tree

3 files changed

+29
-2
lines changed

3 files changed

+29
-2
lines changed

Diff for: .github/workflows/lighthouse.yml

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: CI
2+
on: [push]
3+
jobs:
4+
lhci:
5+
name: Lighthouse
6+
runs-on: ubuntu-latest
7+
steps:
8+
- uses: actions/checkout@v3
9+
- name: Use Node.js 16.x
10+
uses: actions/setup-node@v3
11+
with:
12+
node-version: 16.x
13+
- name: npm install, build
14+
run: |
15+
npm install
16+
npm run build
17+
- name: run Lighthouse CI
18+
run: |
19+
npm install -g @lhci/[email protected]
20+
lhci autorun

Diff for: .pre-commit-config.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ ci:
33
autoupdate_schedule: "quarterly"
44
repos:
55
- repo: https://github.com/astral-sh/ruff-pre-commit
6-
rev: "v0.4.3"
6+
rev: "v0.4.5"
77
hooks:
88
- id: ruff
99
args: ["--fix", "--unsafe-fixes"]
@@ -42,7 +42,7 @@ repos:
4242
args: ["--fix=lf"]
4343
- id: trailing-whitespace
4444
- repo: https://github.com/codespell-project/codespell
45-
rev: v2.2.6
45+
rev: v2.3.0
4646
hooks:
4747
- id: codespell
4848
args: ["--write-changes"]

Diff for: lighthouserc.js

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
module.exports = {
2+
ci: {
3+
upload: {
4+
target: "temporary-public-storage",
5+
},
6+
},
7+
};

0 commit comments

Comments
 (0)