Skip to content

Commit 93fa7c4

Browse files
only21milclaude
andcommitted
perf(ci): list the inert workflows by name so new ones still run everything
Co-Authored-By: Claude Opus 5.5 <[email protected]>
1 parent c9f0c97 commit 93fa7c4

2 files changed

Lines changed: 30 additions & 4 deletions

File tree

‎.github/scripts/ci-changes.cjs‎

Lines changed: 27 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,38 @@ const path = require("node:path");
55

66
const root = path.resolve(__dirname, "../..");
77

8+
// Workflows no test reads. ci.yml defines the CI jobs, tests read release.yml
9+
// and web-preview.yml, and a workflow missing from this list runs everything.
10+
const INERT_WORKFLOWS = [
11+
"agent-context-budget",
12+
"deploy-relay",
13+
"desktop-macos-preview",
14+
"desktop-macos-preview-publish",
15+
"issue-labels",
16+
"mobile-android-apk",
17+
"mobile-eas-preview",
18+
"mobile-eas-preview-fork",
19+
"mobile-eas-production",
20+
"mobile-fingerprint-check",
21+
"mobile-fingerprint-label",
22+
"mobile-showcase-screenshots",
23+
"pr-size",
24+
"pr-vouch",
25+
"publish-aur",
26+
"relay-preview",
27+
"relay-preview-cleanup",
28+
"release-desktop",
29+
"stale-needs-more-info",
30+
"thread-transfer-report",
31+
"windows-tests",
32+
];
33+
834
const INERT = [
935
/^docs\//,
1036
/^\.(agents|cursor|vscode|devcontainer|macroscope|repos)\//,
1137
/^[^/]+\.md$/,
1238
/^LICENSE$/,
13-
// Package tests read no other workflow. ci.yml defines these jobs, and the
14-
// .github/scripts tests read release.yml and web-preview.yml.
15-
/^\.github\/workflows\/(?!(ci|release|web-preview)\.yml$)/,
39+
new RegExp(`^\\.github/workflows/(${INERT_WORKFLOWS.join("|")})\\.yml$`),
1640
];
1741

1842
// Shared test setup and vendored mobile dependencies affect every package.

‎scripts/check-changed.test.ts‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,9 @@ describe("check:changed", () => {
5959
".github/workflows/ci.yml",
6060
".github/workflows/release.yml",
6161
".github/workflows/web-preview.yml",
62-
".github/actions/setup-ci-deps/action.yml",
62+
".github/workflows/new-workflow.yml",
63+
".github/scripts/ci-changes.cjs",
64+
".github/actions/ci-changes/action.yml",
6365
]) {
6466
assert.lengthOf(decide([file], packages, false).affected, packages.length, file);
6567
}

0 commit comments

Comments
 (0)