Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit c7906a5

Browse files
committedFeb 23, 2022
introduce basic lighthouse-ci
1 parent ebc064e commit c7906a5

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed
 

‎.github/workflows/build.yml

+7
Original file line numberDiff line numberDiff line change
@@ -47,3 +47,10 @@ jobs:
4747

4848
- name: E2E Test
4949
run: npm run e2e
50+
51+
- name: Run Lighthouse CI
52+
run: |
53+
npm install -g @lhci/cli@0.8.x
54+
lhci autorun --collect.url=http://localhost:9090
55+
lhci autorun --collect.url=http://localhost:9090/#covid19/
56+

‎lighthouserc.js

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
module.exports = {
2+
ci: {
3+
collect: {
4+
startServerCommand: 'npm run start:examples',
5+
},
6+
upload: {
7+
target: 'temporary-public-storage',
8+
uploadUrlMap: true,
9+
},
10+
},
11+
};

0 commit comments

Comments
 (0)
Please sign in to comment.