forked from baron/baron-sso
로컬/CI 테스트 동기화
This commit is contained in:
@@ -5,6 +5,14 @@ job_name="${1:-adminfront-tests}"
|
||||
|
||||
mkdir -p reports
|
||||
|
||||
if [ -n "${CI:-}" ]; then
|
||||
playwright_install_cmd=(npx playwright install --with-deps)
|
||||
playwright_install_desc="npx playwright install --with-deps"
|
||||
else
|
||||
playwright_install_cmd=(npx playwright install)
|
||||
playwright_install_desc="npx playwright install"
|
||||
fi
|
||||
|
||||
set +e
|
||||
(
|
||||
cd adminfront
|
||||
@@ -36,7 +44,7 @@ fi
|
||||
set +e
|
||||
(
|
||||
cd adminfront
|
||||
npx playwright install --with-deps
|
||||
"${playwright_install_cmd[@]}"
|
||||
) 2>&1 | tee reports/adminfront-provision.log
|
||||
provision_exit_code=${PIPESTATUS[0]}
|
||||
set -e
|
||||
@@ -51,7 +59,7 @@ if [ "$provision_exit_code" -ne 0 ]; then
|
||||
echo "- Exit Code: \`$provision_exit_code\`"
|
||||
echo
|
||||
echo "## Command"
|
||||
echo "\`cd adminfront && npx playwright install --with-deps\`"
|
||||
echo "\`cd adminfront && ${playwright_install_desc}\`"
|
||||
echo
|
||||
echo "## Provision Log Tail (last 200 lines)"
|
||||
echo '```text'
|
||||
@@ -80,7 +88,7 @@ if [ "$test_exit_code" -ne 0 ]; then
|
||||
echo "## Commands"
|
||||
echo "1. \`cd adminfront\`"
|
||||
echo "2. \`npm ci\`"
|
||||
echo "3. \`npx playwright install --with-deps\`"
|
||||
echo "3. \`${playwright_install_desc}\`"
|
||||
echo "4. \`npm test\`"
|
||||
echo
|
||||
echo "## Log Tail (last 200 lines)"
|
||||
|
||||
Reference in New Issue
Block a user