Skip to content

Commit 9f53b07

Browse files
ci: diet — concurrency cancel + no push/PR double runs (#80)
Cancel obsolete CI runs on the same PR or push ref. Trigger push CI on master only so a feature-branch tip is not also tested via push while a PR covers it. Docs-only paths-ignore is push-only so contributor required checks still always report. Co-authored-by: Cursor Agent <cursoragent@cursor.com> Co-authored-by: Jason <jkbennitt@users.noreply.github.com>
1 parent 93fb2a8 commit 9f53b07

1 file changed

Lines changed: 15 additions & 1 deletion

File tree

‎.github/workflows/ci.yml‎

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,25 @@
11
name: CI
22

3+
# Diet: one full run per change in the common case.
4+
# - pull_request covers contributor and feature-branch work (required job names unchanged).
5+
# - push is master-only so a feature/** tip is not also tested via push while a PR is open.
6+
# - concurrency cancels obsolete runs on the same PR or the same push ref.
7+
# Benchmark and release-please are separate workflows and are not in this group.
38
on:
49
push:
5-
branches: [master, "feature/**"]
10+
branches: [master]
11+
# Safe on push only: docs-only master commits skip CI. Not applied to
12+
# pull_request so required checks always report for contributors.
13+
paths-ignore:
14+
- "**/*.md"
15+
- "docs/**"
616
pull_request:
717
branches: [master, "feature/**"]
818

19+
concurrency:
20+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
21+
cancel-in-progress: true
22+
923
jobs:
1024
lint:
1125
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)