Skip to content

Commit 5e4a2ff

Browse files
committed
introduce basic lighthouse-ci
1 parent ebc064e commit 5e4a2ff

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

.github/workflows/build.yml

+5
Original file line numberDiff line numberDiff line change
@@ -47,3 +47,8 @@ jobs:
4747

4848
- name: E2E Test
4949
run: npm run e2e
50+
51+
- name: Run Lighthouse CI
52+
run: |
53+
npm install -g @lhci/[email protected]
54+
lhci autorun

lighthouserc.js

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
module.exports = {
2+
ci: {
3+
collect: {
4+
url: ['http://localhost:9090/', 'http://localhost:9090/#covid19/'],
5+
startServerCommand: 'npm run start:examples',
6+
},
7+
upload: {
8+
target: 'temporary-public-storage',
9+
},
10+
},
11+
};

0 commit comments

Comments
 (0)