Skip to content

Commit 27e5b5c

Browse files
committed
feat(Root): add lhConfigPath as action param
1 parent 0d99b7c commit 27e5b5c

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

.github/workflows/test.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,3 +38,4 @@ jobs:
3838
urls: |
3939
http://localhost:8000/
4040
http://localhost:8000/listing
41+
lhConfigPath: ./.lighthouserc.js

action.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ inputs:
55
urls:
66
description: 'List of URL(s) to analyze'
77
required: true
8+
lhConfigPath:
9+
description: 'Config passed to lighthouse ci action'
10+
required: true
811

912
runs:
1013
using: "composite"
@@ -22,7 +25,7 @@ runs:
2225
id: lhci
2326
uses: treosh/lighthouse-ci-action@v3
2427
with:
25-
configPath: ./.lighthouserc.js
28+
configPath: ${{inputs.lhConfigPath}}
2629
urls: ${{inputs.urls}}
2730
- name: Format lighthouse score
2831
id: format_lhci_score

0 commit comments

Comments
 (0)