From 3ac823c64b904f436d817eef5b74180fe7417215 Mon Sep 17 00:00:00 2001 From: Astemir Boziev Date: Sat, 23 May 2026 17:43:10 +0400 Subject: [PATCH] Skip CI on docs-only and gitignore-only changes The full pipeline (server build + tests, SPA type-check + build, mac app build) costs ~5 minutes per push. README tweaks and .gitignore edits don't change any compiled artifact, so there's no signal worth gating on. paths-ignore is conservative: GitHub only skips a run when *every* changed file matches the list, so mixed commits (e.g. README + a code change) still trigger a full run. Add to the list as new doc-shaped top-level files appear. --- .github/workflows/ci.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 65a041d..9b7f065 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -3,8 +3,20 @@ name: CI on: push: branches: [main] + # Skip the whole pipeline when a commit only touches non-functional + # files. GitHub's rule is "skip iff every changed file matches one of + # these patterns" — touching any source file still triggers a full run. + # Add to this list as new doc-shaped files appear (CHANGELOG, etc.). + paths-ignore: + - '**/*.md' + - '.gitignore' + - 'LICENSE' pull_request: branches: [main] + paths-ignore: + - '**/*.md' + - '.gitignore' + - 'LICENSE' # Lets us trigger CI manually from the Actions tab — handy when poking # at a workflow change without pushing extra commits. workflow_dispatch: