Skip to content

Commit 08913ea

Browse files
authored
Lighthouse updates (#24)
* first pass * pass bulid dir * try using yml again * add lighthouse rc * opt into public storage
1 parent 47b1587 commit 08913ea

File tree

2 files changed

+16
-12
lines changed

2 files changed

+16
-12
lines changed

.github/workflows/main.yml

+9-12
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,19 @@
1-
name: Build project and Run Lighthouse CI
1+
name: Lighthouse
22
on: [push]
33
jobs:
44
lhci:
5-
name: Lighthouse CI
5+
name: CI
66
runs-on: ubuntu-latest
77
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
1410
run: |
1511
npm install
1612
npm run build
17-
- name: run Lighthouse CI
13+
- name: Test dist/
14+
uses: treosh/lighthouse-ci-action@v2
1815
env:
1916
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

lighthouserc.json

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"ci": {
3+
"collect": {
4+
"staticDistDir": "./dist"
5+
}
6+
}
7+
}

0 commit comments

Comments
 (0)