File tree Expand file tree Collapse file tree 2 files changed +31
-1
lines changed Expand file tree Collapse file tree 2 files changed +31
-1
lines changed Original file line number Diff line number Diff line change @@ -70,18 +70,20 @@ jobs:
70
70
71
71
# quicker build + Nightwatch tests for feature branches
72
72
- stage : Pre-deploy
73
- name : ' Build + Deploy Website (Quick) '
73
+ name : ' Build + Deploy Website + Lighthouse CLI '
74
74
if : (NOT tag =~ ^v) AND (NOT branch =~ /(master|release|bug|fix)/)
75
75
install :
76
76
- npx json -I -f package.json -e 'delete this.dependencies'
77
77
- npx json -I -f package.json -e 'delete this.scripts.postinstall'
78
78
- yarn run setup
79
79
- npx lerna run postbootstrap
80
+ - yarn global add @lhci/cli@0.3.x
80
81
script :
81
82
- yarn run build
82
83
- yarn run deploy
83
84
- export NOW_URL=$(./scripts/get-latest-deploy.js)
84
85
- travis_retry yarn run test:e2e:quick
86
+ - lhci autorun --collect.numberOfRuns=3 --collect.url=$NOW_URL --collect.url=$NOW_URL/pattern-lab/patterns/04-pages-10-d8-product-pages-product-t2/04-pages-10-d8-product-pages-product-t2.html --collect.url=$NOW_URL/pattern-lab/patterns/06-experiments-micro-journeys-90-micro-journeys/06-experiments-micro-journeys-90-micro-journeys.html
85
87
after_success :
86
88
- ./scripts/deploy-branch-alias.js
87
89
Original file line number Diff line number Diff line change
1
+ {
2
+ "ci" : {
3
+ "assert" : {
4
+ "preset" : " lighthouse:no-pwa" ,
5
+ "assertions" : {
6
+ "unused-css-rules" : " warn" ,
7
+ "button-name" : " warn" ,
8
+ "external-anchors-use-rel-noopener" : " warn" ,
9
+ "meta-description" : " warn" ,
10
+ "no-document-write" : " warn" ,
11
+ "offscreen-images" : " warn" ,
12
+ "uses-rel-preconnect" : " warn" ,
13
+ "dom-size" : " warn" ,
14
+ "aria-required-attr" : " warn" ,
15
+ "aria-required-children" : " warn" ,
16
+ "aria-valid-attr-value" : " warn" ,
17
+ "image-alt" : " warn" ,
18
+ "label" : " warn" ,
19
+ "list" : " warn" ,
20
+ "listitem" : " warn" ,
21
+ "link-name" : " warn"
22
+ }
23
+ },
24
+ "upload" : {
25
+ "target" : " temporary-public-storage"
26
+ }
27
+ }
28
+ }
You can’t perform that action at this time.
0 commit comments