Read-only mirror of github.com/ondeinference/ed.
Mirrored from https://github.com/ondeinference/ed.git
Synced Nov 23, 01:00 UTC
Skip CI for changes that cannot break the build
Docs, skills, agent config and licences now start no run, and a changes job routes the rest: the macOS fmt, clippy and test job runs for Rust and manifest changes, and a new actionlint job runs for workflow edits. A final CI status job counts skipped as pass so it can become a required check. The commit-keyed concurrency group and the single macOS job are unchanged. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Seto Elkahfi committed
Nov 10, 2026 at 13:46 UTC
0b7769cc21ebef760bcc9368ff4ee45190acf6cd
1 file changed
+65
.github/workflows/ci.yml
+65
@@ -1,9 +1,24 @@
1
name: CI
2
3
+# One run per commit: push only fires on the integration branches, and
4
+# pull_request has no branch filter so stacked PRs still run. Docs, skills and
5
+# agent config never affect the build, so they start nothing. The `changes` job
6
+# routes the rest.
7
on:
8
pull_request:
9
+ paths-ignore: &ignored
10
+ - "**/*.md"
11
+ - ".agents/**"
12
+ - ".claude/**"
13
+ - ".sigit/**"
14
+ - "LICENSE-*"
15
push:
16
branches: [main, development]
17
+ paths-ignore: *ignored
18
+ workflow_dispatch:
19
+
20
+permissions:
21
+ contents: read
22
23
concurrency:
24
# Keyed on the commit, not the ref: a merge lands the same SHA on development
@@ -16,7 +31,45 @@ concurrency:
31
cancel-in-progress: true
32
33
jobs:
34
+ changes:
35
+ name: Changes
36
+ runs-on: ubuntu-latest
37
+ outputs:
38
+ rust: ${{ steps.filter.outputs.rust }}
39
+ workflows: ${{ steps.filter.outputs.workflows }}
40
+ steps:
41
+ - uses: actions/checkout@v6
42
+ - id: filter
43
+ uses: dorny/paths-filter@ceb8a2b8f2d89434be7ff52d3de7ec3738c5cc9d # v4.0.3
44
+ with:
45
+ filters: |
46
+ rust:
47
+ - "crates/**"
48
+ - "uniffi-bindgen/**"
49
+ - "Cargo.toml"
50
+ - "Cargo.lock"
51
+ - "rust-toolchain.toml"
52
+ - ".cargo/**"
53
+ - "scripts/**"
54
+ - ".github/workflows/ci.yml"
55
+ workflows:
56
+ - ".github/workflows/**"
57
+ - ".github/scripts/**"
58
+
59
+ actionlint:
60
+ name: Lint workflows
61
+ needs: changes
62
+ if: needs.changes.outputs.workflows == 'true'
63
+ runs-on: ubuntu-latest
64
+ steps:
65
+ - uses: actions/checkout@v6
66
+ - run: bash <(curl -fsSL https://raw.githubusercontent.com/rhysd/actionlint/v1.7.12/scripts/download-actionlint.bash) 1.7.12
67
+ - run: ./actionlint -color
68
+
69
check:
70
+ name: Check
71
+ needs: changes
72
+ if: needs.changes.outputs.rust == 'true'
73
runs-on: macos-26
74
defaults:
75
run:
@@ -42,3 +95,15 @@ jobs:
95
- run: cargo fmt --all -- --check
96
- run: cargo clippy --locked --workspace --all-targets -- -D warnings
97
- run: cargo test --locked --workspace
98
+
99
+ ci:
100
+ name: CI status
101
+ needs: [changes, actionlint, check]
102
+ if: always()
103
+ runs-on: ubuntu-latest
104
+ steps:
105
+ - name: Every needed job succeeded or was skipped
106
+ run: |
107
+ for result in ${{ join(needs.*.result, ' ') }}; do
108
+ case "$result" in success|skipped) ;; *) echo "::error::job result: $result"; exit 1;; esac
109
+ done