File tree 2 files changed +16
-12
lines changed
2 files changed +16
-12
lines changed Original file line number Diff line number Diff line change 1
- name : Build project and Run Lighthouse CI
1
+ name : Lighthouse
2
2
on : [push]
3
3
jobs :
4
4
lhci :
5
- name : Lighthouse CI
5
+ name : CI
6
6
runs-on : ubuntu-latest
7
7
steps :
8
- - uses : actions/checkout@v1
9
- - name : Use Node.js 10.x
10
- uses : actions/setup-node@v1
11
- with :
12
- node-version : 10.x
13
- - name : npm install, build
8
+ - uses : actions/checkout@v2
9
+ - name : Build
14
10
run : |
15
11
npm install
16
12
npm run build
17
- - name : run Lighthouse CI
13
+ - name : Test dist/
14
+ uses : treosh/lighthouse-ci-action@v2
18
15
env :
19
16
LHCI_GITHUB_APP_TOKEN : ${{secrets.LHCI_GITHUB_APP_TOKEN}}
20
- run : |
21
- npm install -g @lhci/[email protected]
22
- lhci autorun --upload.target=temporary-public-storage || echo "LHCI failed!"
17
+ with :
18
+ configPath : ' ./lighthouserc.json '
19
+ temporaryPublicStorage : true
Original file line number Diff line number Diff line change
1
+ {
2
+ "ci" : {
3
+ "collect" : {
4
+ "staticDistDir" : " ./dist"
5
+ }
6
+ }
7
+ }
You can’t perform that action at this time.
0 commit comments