We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0ba9164 commit fc3ed3dCopy full SHA for fc3ed3d
1 file changed
entrypoint.sh
@@ -167,6 +167,7 @@ query_string="?_fd=0&pb=0"
167
min_score_performance="${LHCI_MIN_SCORE_PERFORMANCE:-0.6}"
168
min_score_accessibility="${LHCI_MIN_SCORE_ACCESSIBILITY:-0.9}"
169
170
+# Prepare the default CI Lighthouse config
171
cat <<- EOF > lighthouserc.yml
172
ci:
173
collect:
@@ -195,6 +196,11 @@ ci:
195
196
aggregationMethod: median-run
197
EOF
198
199
+# Merge custom Lighthouse CI config, if provided
200
+if [[ -f ".github/lighthouserc-custom.yml" ]]; then
201
+ yq eval-all 'select(fileIndex == 0) * select(fileIndex == 1)' lighthouserc.yml .github/lighthouserc-custom.yml -i
202
+fi
203
+
204
cat <<-EOF > setPreviewCookies.js
205
module.exports = async (browser) => {
206
// launch browser for LHCI
0 commit comments