PureXML/.github/workflows/rules-swift.yml
Mihaela Mihaljevic c7ef8abfd9 chore(rules): pin rules-swift corpus, add gates and CI; drop redundant docs/rules mirror
Adopt the rules-swift pin-and-codify strategy in snapshot mode (third_party/rules-swift
@97dc70f + sha256), add codified gates, a conformance audit ledger, and
.github/workflows/rules-swift.yml (corpus-pin integrity required, full gate report mode).
Remove the docs/rules mirror it supersedes (repo-specific files kept under docs/). Style
and leak gates exclude the vendored corpus.
2026-06-30 14:02:40 +02:00

28 lines
890 B
YAML

name: rules-swift gate
# Runs the codified rules-swift gates on every pull request. The corpus-pin
# integrity check must stay green (it fails if the vendored canon drifts from its
# pinned commit). The full strict gate runs in report mode (continue-on-error)
# because it is intentionally red on a repo's pre-existing gaps, recorded in
# docs/rules-swift-audit.md; flip it to required (remove continue-on-error, or add
# branch protection) once the repo reaches conformance.
on:
pull_request:
workflow_dispatch:
permissions:
contents: read
jobs:
rules-swift:
runs-on: macos-14
steps:
- uses: actions/checkout@v4
- name: Corpus pin integrity (required)
run: sh scripts/check-rules-corpus-coverage.sh
- name: Full rules gate (reports pre-existing gaps; non-blocking)
run: sh scripts/check-rules-swift.sh
continue-on-error: true