From 700a9484ab149fbf82d867ab34a3f6e212836840 Mon Sep 17 00:00:00 2001 From: Oleg <18466855+EvaTheSalmon@users.noreply.github.com> Date: Wed, 28 Oct 2026 11:55:27 +0300 Subject: [PATCH] ci(repo): skip CI for every path no job reads CI skipped only Markdown and docs/ changes, so a change of LICENSE, the logo, the Zed settings, the icon generator or release.yml still ran all three jobs, the seven-minute installer job included, though no job reads those files. Both triggers now ignore them, as awg-grpc's CI does; a change that also touches code still runs everything. Co-Authored-By: Claude Opus 5.5 (1M context) --- .github/workflows/ci.yml | 22 ++++++++++++++++++---- AGENTS.md | 2 +- docs/architecture/verification.md | 4 +++- 3 files changed, 22 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 539b939..875b053 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,14 +1,28 @@ name: CI # push is limited to master so a same-repo pull request runs once (the -# pull_request event), not twice. A change of Markdown and docs/ files alone -# builds and tests nothing, so it runs nothing. +# pull_request event), not twice. No job reads the ignored paths, so a change +# of them alone runs nothing. Keep both lists equal. on: push: branches: [master] - paths-ignore: ['**.md', 'docs/**'] + paths-ignore: + - "**.md" + - "docs/**" + - "LICENSE" + - "logo.png" + - ".zed/**" + - "Installer/make-icon.py" + - ".github/workflows/release.yml" pull_request: - paths-ignore: ['**.md', 'docs/**'] + paths-ignore: + - "**.md" + - "docs/**" + - "LICENSE" + - "logo.png" + - ".zed/**" + - "Installer/make-icon.py" + - ".github/workflows/release.yml" jobs: build: diff --git a/AGENTS.md b/AGENTS.md index ac048e3..deb24b0 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -119,7 +119,7 @@ config in `.golangci.yml`. Unit tests live beside the source (`cmd/semibase/*_te CI (`.github/workflows/ci.yml`) runs `go build` and `go test -race` on `windows-latest` and `ubuntu-latest` for every push to `master` and every pull request, unless every changed file is -Markdown or under `docs/`, and the lint in the Windows `build` job only. The database checks run +on its `paths-ignore` list, and the lint in the Windows `build` job only. The database checks run there too: the service restart in `build`, `site` and `bench` against PostgreSQL 17 and 14 containers in `linux`, the setup end to end in `installer`. Each step and what it requires: `docs/architecture/verification.md`. diff --git a/docs/architecture/verification.md b/docs/architecture/verification.md index 3427554..caf4baf 100644 --- a/docs/architecture/verification.md +++ b/docs/architecture/verification.md @@ -8,7 +8,9 @@ access checks every run ends with ([provisioning.md](./provisioning.md#what-the- the CI steps below and the release smoke runs. `.github/workflows/ci.yml` runs on every pull request and on a push to `master`, unless every -changed file matches `**.md` or `docs/**` (`paths-ignore`). Three jobs: +changed file is on its `paths-ignore` list, which names the paths no job reads: Markdown, +`docs/**`, `LICENSE`, `logo.png`, `.zed/**`, `Installer/make-icon.py` and `release.yml`. Three +jobs: | Job | Runner | Covers | | --- | --- | --- |