Skip to content

Commit 6002042

Browse files
committed
feat(ci): add lighthouse profiling workflow
1 parent 68f9113 commit 6002042

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.github/workflows/profiler-local.yml

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: profiler-local
2+
on:
3+
push:
4+
branches:
5+
- master
6+
- develop
7+
pull_request:
8+
branches:
9+
- master
10+
- develop
11+
12+
jobs:
13+
audit:
14+
name: lighthouse
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: actions/checkout@v1
18+
- name: npm-ci
19+
run: npm ci
20+
- name: build
21+
run: npm run build
22+
- name: serve
23+
run: |
24+
npm run serve &
25+
while ! nc -z localhost 9000 </dev/null; do sleep 1; done
26+
- name: profile
27+
run: npx lighthouse-ci http://localhost:9000 \
28+
--score=90 \
29+
--performance=80

0 commit comments

Comments
 (0)