This commit is contained in:
@@ -70,6 +70,17 @@ test_runner_data_is_gitignored() {
|
||||
done
|
||||
}
|
||||
|
||||
test_readme_is_navigation_focused() {
|
||||
local file
|
||||
|
||||
file="${REPO_ROOT}/README.md"
|
||||
|
||||
grep -q '^## 🚀 快速开始$' "${file}" || fail "README.md should provide a quick start section"
|
||||
grep -q '\[DEPLOYMENT.md\](\./DEPLOYMENT.md)' "${file}" || fail "README.md should link to DEPLOYMENT.md"
|
||||
grep -q '\[WORKFLOW.md\](\./WORKFLOW.md)' "${file}" || fail "README.md should link to WORKFLOW.md"
|
||||
grep -q 'cp \.env\.example \.env' "${file}" || fail "README.md quick start should mention copying .env.example"
|
||||
}
|
||||
|
||||
test_preset_env_examples_exist() {
|
||||
local file
|
||||
|
||||
@@ -89,6 +100,7 @@ test_stats_workflow_uses_workflow_secret_consistently
|
||||
test_workflow_docs_and_links_use_actual_paths
|
||||
test_presets_do_not_mount_check_crlf_helper
|
||||
test_runner_data_is_gitignored
|
||||
test_readme_is_navigation_focused
|
||||
test_preset_env_examples_exist
|
||||
|
||||
echo "template_defaults_test.sh: PASS"
|
||||
|
||||
Reference in New Issue
Block a user