chore(rules): track shared-rules baseline v1.1.0
This commit is contained in:
parent
5aee644bf4
commit
d57457caf4
24
.forgejo/workflows/rules-conformance.yml
Normal file
24
.forgejo/workflows/rules-conformance.yml
Normal file
@ -0,0 +1,24 @@
|
||||
# Managed by rules-swift (scripts/sync-rules.sh). Verifies this repo tracks the
|
||||
# CURRENT shared-rules baseline. The repo's own .swiftformat/.swiftlint.yml are
|
||||
# repo-specific (baseline + project rules) and are intentionally NOT byte-checked.
|
||||
name: rules-conformance
|
||||
on:
|
||||
push:
|
||||
pull_request:
|
||||
workflow_dispatch:
|
||||
jobs:
|
||||
rules:
|
||||
runs-on: macos
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Rules baseline freshness (VERSION)
|
||||
run: |
|
||||
BASE=https://codeberg.org/Mihaela/rules-swift/raw/branch/main
|
||||
canon=$(curl -fsSL "$BASE/VERSION" | tr -d '[:space:]')
|
||||
mine=$(tr -d '[:space:]' < .rules-version 2>/dev/null || echo MISSING)
|
||||
if [ "$mine" != "$canon" ]; then
|
||||
echo "STALE: shared-rules baseline is v$canon, this repo tracks v$mine."
|
||||
echo "Review the baseline diff, fold it into this repo's rules, then set .rules-version to $canon."
|
||||
exit 1
|
||||
fi
|
||||
echo "rules baseline FRESH at v$canon (repo-specific rules preserved, not checked)"
|
||||
1
.rules-version
Normal file
1
.rules-version
Normal file
@ -0,0 +1 @@
|
||||
1.1.0
|
||||
Loading…
Reference in New Issue
Block a user