File tree Expand file tree Collapse file tree 5 files changed +30
-2
lines changed Expand file tree Collapse file tree 5 files changed +30
-2
lines changed Original file line number Diff line number Diff line change 1
1
.idea
2
- * .iml
2
+ * .iml
3
+ .lighthouseci /* .json
4
+ .lighthouseci /* .html
Original file line number Diff line number Diff line change 1
- FROM node:12.13 -alpine3.10
1
+ FROM node:12.17 -alpine3.11
2
2
3
3
RUN apk add --no-cache chromium
4
4
RUN npm install -g @lhci/cli@0.4.0
@@ -10,5 +10,9 @@ RUN addgroup lhci \
10
10
--home /home/lhci \
11
11
--ingroup lhci \
12
12
lhci
13
+
13
14
USER lhci
14
15
WORKDIR /home/lhci
16
+
17
+ RUN mkdir .lighthouseci
18
+ VOLUME .lighthouseci
Original file line number Diff line number Diff line change @@ -15,6 +15,13 @@ Docker image for [Lighthouse CI CLI](https://github.com/GoogleChrome/lighthouse-
15
15
16
16
## Usage
17
17
18
+ ### Locally
19
+
20
+ ```
21
+ docker run -it --rm -v $(pwd)/example:/home/lhci/example -v $(pwd)/.lighthouseci:/home/lhci/.lighthouseci lhci lhci --config ./example/lighthouserc.example.yaml autorun
22
+ ```
23
+
24
+ ### In CI Pipeline
18
25
We are using this image in our Bitbucket Pipeline as a step to run LH tests and then upload results to
19
26
Google Cloud Storage.
20
27
Original file line number Diff line number Diff line change
1
+ ci :
2
+ collect :
3
+ additive : false
4
+ url :
5
+ - https://pixboost.com
6
+ settings :
7
+ chrome-flags : " --no-sandbox --headless"
8
+ throttling-method : simulate
9
+ # https://github.com/GoogleChrome/lighthouse/blob/8f500e00243e07ef0a80b39334bedcc8ddc8d3d0/lighthouse-core/config/constants.js#L19-L26
10
+ throttling :
11
+ throughputKbps : 1638
12
+ uploadThroughputKbps : 675
13
+ cpuSlowdownMultiplier : 4
14
+ assert :
15
+ preset : lighthouse:no-pwa
You can’t perform that action at this time.
0 commit comments