diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 06d5444..9e08c5e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,8 +1,21 @@ name: CI +# Prose runs nothing: no build, test or workflow step of this CI reads a Markdown file or anything +# under docs/ (grep, 2026-11-11: Prettier ignores both; docs/screenshots is read only by the site, +# pages.yml), so a change made only of them skips the run. The scheme is Aura's and Twinova's +# (chetto1983/Aura, chetto1983/Twinova ci.yml): `paths` with negations, where a file a test reads +# could be re-included. Pushes run on master only; a working branch is checked by its pull_request +# run, so one SHA does not run twice. No tag trigger here, so `paths` cannot swallow a tag push. on: push: + branches: ["master"] + paths: &code-paths + - "**" + - "!**.md" + - "!docs/**" pull_request: + branches: ["master"] + paths: *code-paths permissions: contents: read @@ -82,7 +95,11 @@ jobs: persist-credentials: false - run: bash scripts/check-file-size.sh + # Only on master, as in Twinova (user, 2026-11-11): the MSI was the longest job of run 42981578708 + # (4 min 52 s, the E2E 4 min 15 s and 4 min 28 s), and on a pull request the E2E already builds + # and drives the app on both platforms. bundle: + if: github.event_name == 'push' needs: [rust, frontend, file-size] strategy: fail-fast: false diff --git a/.github/workflows/mutation.yml b/.github/workflows/mutation.yml index 542a3a2..66f8d9c 100644 --- a/.github/workflows/mutation.yml +++ b/.github/workflows/mutation.yml @@ -7,7 +7,16 @@ name: Mutation on: push: branches: ["master"] - paths: ["src-tauri/src/**", "src/lib/**", "stryker.config.json", "src-tauri/.cargo/mutants.toml"] + # Test files stay in: a test edit can stop catching a mutant. + paths: + - "src-tauri/src/**" + - "src/lib/**" + - "stryker.config.json" + - "src-tauri/.cargo/mutants.toml" + # Dependencies and build profiles change the code the tests run (as in chetto1983/Twinova, + # whose PR #29 touched only Cargo.toml). + - "src-tauri/Cargo.toml" + - "src-tauri/Cargo.lock" schedule: - cron: "13 5 * * 1" workflow_dispatch: diff --git a/CLAUDE.md b/CLAUDE.md index 5e2b486..452edfe 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -123,7 +123,10 @@ data types, byte orders) and backend texts stay in English - **DEFINITION OF DONE.** A job is complete only when validated E2E on a real scenario (app running, real master↔slave exchange, ideally against an independent reference implementation). - **GIT PUSH DISCIPLINE.** Push at the end of a task or completed job, then check that all CI runs - on the pushed SHA are green. Never leave work only in a local branch. + on the pushed SHA are green. Never leave work only in a local branch. CI runs on pushes to + `master` and on pull requests (the Aura scheme), so a working branch needs an open PR to be + checked; a change made only of Markdown files or of `docs/` runs nothing (nothing in CI reads + them). ## Post-edit validation (Gate 2)