added unity files
This commit is contained in:
parent
9042333f51
commit
28c15035a4
62 changed files with 3873 additions and 270 deletions
47
.forgejo/workflows/code-docs.yml
Normal file
47
.forgejo/workflows/code-docs.yml
Normal file
|
|
@ -0,0 +1,47 @@
|
|||
name: Code Documentation
|
||||
|
||||
on:
|
||||
push:
|
||||
pull_request:
|
||||
|
||||
jobs:
|
||||
code-docs:
|
||||
runs-on: linux-dev
|
||||
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Generate code documentation
|
||||
shell: bash
|
||||
run: |
|
||||
chmod +x tools/generate-code-docs.sh
|
||||
./tools/generate-code-docs.sh
|
||||
|
||||
- name: Show code documentation summary
|
||||
shell: bash
|
||||
run: |
|
||||
test -f reports/api-reference.md
|
||||
test -f reports/file-purpose.md
|
||||
test -f reports/unity-scripts.md
|
||||
test -f reports/call-map.md
|
||||
test -f reports/code-docs-summary.md
|
||||
|
||||
echo "===== CODE DOCUMENTATION COMPLETE ====="
|
||||
echo "Files created or updated:"
|
||||
echo "- reports/api-reference.md"
|
||||
echo "- reports/file-purpose.md"
|
||||
echo "- reports/unity-scripts.md"
|
||||
echo "- reports/call-map.md"
|
||||
echo "- reports/code-docs-summary.md"
|
||||
|
||||
echo "Detected code types:"
|
||||
awk '
|
||||
/^Detected code types:/ {show=1; next}
|
||||
show && /^-/ {print}
|
||||
show && NF == 0 {exit}
|
||||
' reports/code-docs-summary.md
|
||||
|
||||
echo
|
||||
echo "===== CODE DOCS SUMMARY ====="
|
||||
cat reports/code-docs-summary.md
|
||||
|
|
@ -12,7 +12,53 @@ jobs:
|
|||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Run validation report pass
|
||||
shell: bash
|
||||
run: |
|
||||
chmod +x tools/validate-code.sh
|
||||
./tools/validate-code.sh
|
||||
|
||||
- name: Generate project report
|
||||
shell: bash
|
||||
run: |
|
||||
chmod +x tools/project-report.sh
|
||||
./tools/project-report.sh
|
||||
|
||||
- name: Show project report summary
|
||||
shell: bash
|
||||
run: |
|
||||
test -f reports/project-flow.md
|
||||
test -f reports/file-summary.md
|
||||
test -f reports/languages.md
|
||||
|
||||
echo "===== PROJECT REPORT COMPLETE ====="
|
||||
echo "Report generation completed"
|
||||
echo "Files created or updated:"
|
||||
if test -f reports/generated-files.md; then
|
||||
sed -n '3,$p' reports/generated-files.md
|
||||
else
|
||||
echo "- reports/project-flow.md"
|
||||
echo "- reports/file-summary.md"
|
||||
echo "- reports/languages.md"
|
||||
fi
|
||||
|
||||
echo "Customer code status:"
|
||||
if test -f reports/customer-code-status.txt; then
|
||||
cat reports/customer-code-status.txt
|
||||
elif test -f reports/errors.md && grep -q "CUSTOMER CODE ERRORS FOUND\|NO CUSTOMER CODE ERRORS FOUND" reports/errors.md; then
|
||||
grep -m 1 "CUSTOMER CODE ERRORS FOUND\|NO CUSTOMER CODE ERRORS FOUND" reports/errors.md
|
||||
else
|
||||
echo "CUSTOMER CODE STATUS UNKNOWN"
|
||||
fi
|
||||
|
||||
if test -f reports/errors.md; then
|
||||
echo
|
||||
echo "===== VALIDATION SUMMARY EXCERPT ====="
|
||||
sed -n '1,12p' reports/errors.md
|
||||
fi
|
||||
|
||||
if test -f reports/summary.md; then
|
||||
echo
|
||||
echo "===== AUTOMATION SUMMARY ====="
|
||||
cat reports/summary.md
|
||||
fi
|
||||
|
|
|
|||
|
|
@ -13,6 +13,40 @@ jobs:
|
|||
uses: actions/checkout@v4
|
||||
|
||||
- name: Run validation
|
||||
shell: bash
|
||||
run: |
|
||||
chmod +x tools/validate-code.sh
|
||||
./tools/validate-code.sh
|
||||
|
||||
- name: Show validation reports
|
||||
shell: bash
|
||||
run: |
|
||||
test -f reports/errors.md
|
||||
|
||||
echo "===== VALIDATION SUMMARY ====="
|
||||
if test -f reports/customer-code-status.txt; then
|
||||
cat reports/customer-code-status.txt
|
||||
elif grep -q "CUSTOMER CODE ERRORS FOUND\|NO CUSTOMER CODE ERRORS FOUND" reports/errors.md; then
|
||||
grep -m 1 "CUSTOMER CODE ERRORS FOUND\|NO CUSTOMER CODE ERRORS FOUND" reports/errors.md
|
||||
else
|
||||
echo "CUSTOMER CODE STATUS UNKNOWN"
|
||||
fi
|
||||
|
||||
echo "Reports written:"
|
||||
if test -f reports/generated-files.md; then
|
||||
sed -n '3,$p' reports/generated-files.md
|
||||
else
|
||||
echo "- reports/errors.md"
|
||||
fi
|
||||
|
||||
echo
|
||||
echo "===== VALIDATION REPORT FILES ====="
|
||||
if test -f reports/generated-files.md; then
|
||||
cat reports/generated-files.md
|
||||
else
|
||||
echo "- reports/errors.md"
|
||||
fi
|
||||
|
||||
echo
|
||||
echo "===== reports/errors.md ====="
|
||||
cat reports/errors.md
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue