Files
athena/.github/workflows/smoke.yml
T
Зарубин Филипп 0000b684ca fix: scope email check to branch-new commits, not full repo history
git log --full-history in CI sees the merge commit's both parents —
the main-branch parent carries old personal-email commits from before
the noreply migration, causing a false positive.

Fix: detect merge commit (HEAD^2 = PR tip, HEAD^1 = main tip) and use
HEAD^1..HEAD^2 range; fall back to merge-base..HEAD locally.
Also set fetch-depth: 0 in CI so merge-base is available.
2026-06-23 22:02:49 +03:00

33 lines
1.0 KiB
YAML

name: smoke
on:
push:
branches: [main]
pull_request:
workflow_dispatch:
jobs:
smoke:
# macOS: dry-validate использует plutil/launchd-семантику (macOS-only)
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # нужен для merge-base в email-check
- name: shellcheck (lint)
run: |
brew install shellcheck
shellcheck -S error bootstrap.sh smoke/*.sh
- name: bootstrap --dry-run (оркестратор слоёв 0–6, без побочных эффектов)
run: ./bootstrap.sh --dry-run
- name: smoke (структура · чистота · личное · канон · self-learning · security-guard · dry-validate)
run: bash smoke/smoke.sh
- name: clean-room dry-validate (generic-only → GREEN, 0 неизвестных токенов)
run: |
export ATHENA_PRIVATE_DIR="$(mktemp -d)" # нет overlay = чистый таргет
bash smoke/dry-validate.sh