Skip to content

fix: use env context (not secrets) in step-level if condition #20

fix: use env context (not secrets) in step-level if condition

fix: use env context (not secrets) in step-level if condition #20

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
skill-validation:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Install uv
uses: astral-sh/setup-uv@v6
- name: Verify SKILL.md exists with valid frontmatter
run: |
test -f SKILL.md || { echo "SKILL.md not found"; exit 1; }
head -10 SKILL.md | grep -q '^name:' || { echo "Missing 'name' in SKILL.md frontmatter"; exit 1; }
head -10 SKILL.md | grep -q '^description:' || { echo "Missing 'description' in SKILL.md frontmatter"; exit 1; }
echo "SKILL.md frontmatter is valid"
- name: Check Python script syntax
run: python3 -m py_compile scripts/research.py scripts/store.py scripts/upload.py scripts/state.py scripts/onboard.py
- name: Smoke test state.py
run: uv run scripts/state.py --help
- name: Verify reference files exist
run: |
test -f references/online_docs.md || { echo "Missing references/online_docs.md"; exit 1; }
test -f references/file_search_guide.md || { echo "Missing references/file_search_guide.md"; exit 1; }
echo "All reference files present"
- name: Verify community files exist
run: |
test -f CHANGELOG.md || { echo "Missing CHANGELOG.md"; exit 1; }
test -f CONTRIBUTING.md || { echo "Missing CONTRIBUTING.md"; exit 1; }
echo "All community files present"