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

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