Files
carpseeds.pl/wp-content/plugins/elementor-3.2.5-bck4/.github/scripts/save-lighthouse-pages-html-dumps.sh
2024-07-15 11:28:08 +02:00

11 lines
466 B
Bash

#!/bin/bash
TEMPLATES_FILE_NAMES=`ls ${GITHUB_WORKSPACE}/tests/lighthouse/templates/*.json`
mkdir -p .lighthouseci/dumps
for TEMPLATE_FILE_NAME in $TEMPLATES_FILE_NAMES
do
TEMPLATE_NAME=$(basename "$TEMPLATE_FILE_NAME" .json)
wget --directory-prefix=.lighthouseci/dumps/${TEMPLATE_NAME} --mirror --convert-links --adjust-extension --page-requisites --no-parent --no-host-directories --restrict-file-names=windows http://localhost:8889/${TEMPLATE_NAME}/
done