Compare commits

..

1 Commits

Author SHA1 Message Date
a4c3f80cd8 feat: add CI sanity checks for crisis lifeline and prompt integrity
Some checks failed
Sanity Checks / sanity-test (pull_request) Failing after 2s
2026-04-10 23:54:47 +00:00
2 changed files with 31 additions and 24 deletions

View File

@@ -0,0 +1,31 @@
name: Sanity Checks
on:
pull_request:
branches: [main]
jobs:
sanity-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Validate 988 Lifeline Presence
run: |
echo "Checking index.html for 988 lifeline..."
grep -q "988" index.html || (echo "ERROR: 988 Lifeline missing from index.html" && exit 1)
echo "Checking system-prompt.txt for 988 lifeline..."
grep -q "988" system-prompt.txt || (echo "ERROR: 988 Lifeline missing from system-prompt.txt" && exit 1)
- name: Validate HTML Structure
run: |
echo "Checking for basic HTML tags..."
grep -q "<html>" index.html
grep -q "<body>" index.html
grep -q "<head>" index.html
- name: Validate Prompt Integrity
run: |
echo "Checking for 'Alexander Whitestone' in prompt..."
grep -q "Alexander Whitestone" system-prompt.txt

View File

@@ -1,24 +0,0 @@
name: Smoke Test
on:
pull_request:
push:
branches: [main]
jobs:
smoke:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Parse check
run: |
find . -name '*.yml' -o -name '*.yaml' | grep -v .gitea | xargs -r python3 -c "import sys,yaml; [yaml.safe_load(open(f)) for f in sys.argv[1:]]"
find . -name '*.json' | xargs -r python3 -m json.tool > /dev/null
find . -name '*.py' | xargs -r python3 -m py_compile
find . -name '*.sh' | xargs -r bash -n
echo "PASS: All files parse"
- name: Secret scan
run: |
if grep -rE 'sk-or-|sk-ant-|ghp_|AKIA' . --include='*.yml' --include='*.py' --include='*.sh' 2>/dev/null | grep -v .gitea; then exit 1; fi
echo "PASS: No secrets"