♻️ refactor(runner): simplify shell helpers and workflow scripts
This commit is contained in:
@@ -38,6 +38,10 @@ test_check_crlf_works_from_preset_directory() {
|
||||
)
|
||||
|
||||
! rg -q "文件不存在" "${output_file}" || fail "check_crlf.sh should inspect sibling common scripts even when invoked from preset directory"
|
||||
! rg -q "是否立即重启容器" "${output_file}" || fail "check_crlf.sh should not prompt to restart containers"
|
||||
! rg -q "docker compose down" "${output_file}" || fail "check_crlf.sh should not include compose restart commands"
|
||||
! rg -q "docker compose build --no-cache" "${output_file}" || fail "check_crlf.sh should not take responsibility for rebuilding containers"
|
||||
! rg -q "docker compose up -d" "${output_file}" || fail "check_crlf.sh should not take responsibility for starting containers"
|
||||
|
||||
for file_name in entrypoint.sh setup.sh upgrade.sh register.sh manage.sh; do
|
||||
! has_crlf "${common_dir}/${file_name}" || fail "${file_name} should have CRLF fixed"
|
||||
|
||||
Reference in New Issue
Block a user