File tree 2 files changed +64
-0
lines changed
2 files changed +64
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Lighthouse CI
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - master
7
+ pull_request : ~
8
+ workflow_dispatch : ~
9
+
10
+ jobs :
11
+ build :
12
+
13
+ runs-on : ubuntu-latest
14
+
15
+ strategy :
16
+ matrix :
17
+ node-version : [ 14.x ]
18
+
19
+ steps :
20
+ - name : Checkout
21
+ uses : actions/checkout@v2
22
+
23
+ - name : Use Node.js ${{ matrix.node-version }}
24
+ uses : actions/setup-node@v1
25
+ with :
26
+ node-version : ${{ matrix.node-version }}
27
+
28
+ - name : Cache Node.js modules
29
+ uses : actions/cache@v2
30
+ with :
31
+ path : ~/.npm
32
+ key : ${{ runner.OS }}-node-${{ hashFiles('**/package-lock.json') }}
33
+ restore-keys : |
34
+ ${{ runner.OS }}-node-
35
+ ${{ runner.OS }}-
36
+
37
+ - name : Install dependencies
38
+ run : npm ci
39
+
40
+ - name : Build
41
+ run : npm run build
42
+
43
+ - name : Run Lighthouse CI
44
+ run : |
45
+ npm install -g @lhci/[email protected]
46
+ lhci autorun
47
+
48
+ - uses : actions/upload-artifact@v2
49
+ with :
50
+ name : lighthouse-report
51
+ path : ./lhci/*
Original file line number Diff line number Diff line change
1
+ module . exports = {
2
+ ci : {
3
+ collect : {
4
+ url : [ 'http://localhost:9090/#covid19/' ] ,
5
+ startServerCommand : 'npm run start:examples' ,
6
+ numberOfRuns : 5 ,
7
+ } ,
8
+ upload : {
9
+ target : 'filesystem' ,
10
+ outputDir : 'lhci'
11
+ } ,
12
+ } ,
13
+ } ;
You can’t perform that action at this time.
0 commit comments