Skip to content

Commit 45f2969

Browse files
committed
test : lighthouse ci 연결
1 parent efc347f commit 45f2969

1 file changed

Lines changed: 33 additions & 0 deletions

File tree

.github/workflows/lighthouse.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Lighthouse CI
2+
3+
on:
4+
push:
5+
branches: [lighthouse]
6+
pull_request:
7+
8+
jobs:
9+
lhci:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: Checkout repo
14+
uses: actions/checkout@v3
15+
16+
- name: Setup Node.js
17+
uses: actions/setup-node@v3
18+
with:
19+
node-version: 18
20+
21+
- name: Install dependencies
22+
run: npm ci
23+
24+
- name: Build project
25+
run: npm run build
26+
27+
- name: Start server and run Lighthouse
28+
run: |
29+
npm run start &
30+
npx wait-on http://localhost:3000
31+
npx lhci autorun \
32+
--collect.url=http://localhost:3000 \
33+
--upload.target=temporary-public-storage

0 commit comments

Comments
 (0)