Skip to content

Shared task board where people and AI coding agents work as teammates. Source-available, self-hostable.

Go

ci: run backend-tests when files read by Go tests change (MUL-9258) (#10597)

Jiayuan Zhangfdfbfcd5e5d3
diff --git a/.github/ci-paths.json b/.github/ci-paths.json
index f3f220ea1f..6e44b862bb 100644
--- a/.github/ci-paths.json
+++ b/.github/ci-paths.json
@@ -19,6 +19,10 @@
"backend": [
"server/**",
"packages/core/runtimes/cli-version.ts",
+ ".multica/environments.toml",
+ "examples/plugins/**",
+ ".env.example",
+ "docker-compose.selfhost.yml",
"scripts/agent-cli-command-names.txt",
"scripts/go-test-with-agent-cli-guard.sh",
"scripts/test-go.sh",
diff --git a/scripts/ci-scope.test.mjs b/scripts/ci-scope.test.mjs
index ea7fe2f998..5e76c38452 100644
--- a/scripts/ci-scope.test.mjs
+++ b/scripts/ci-scope.test.mjs
@@ -29,7 +29,10 @@ for (const [name, files, selected] of [
["Go dependencies", ["server/go.mod", "server/go.sum"], ["backend", "runtime"]],
["Helm only", ["deploy/helm/multica/templates/deployment.yaml"], ["scripts"]],
["container entrypoint", ["docker/entrypoint.sh"], ["scripts"]],
- ["selfhost config", [".env.example"], ["scripts", "installer"]],
+ ["selfhost config", [".env.example"], ["backend", "scripts", "installer"]],
+ ["selfhost compose", ["docker-compose.selfhost.yml"], ["backend", "scripts", "installer"]],
+ ["local environment config", [".multica/environments.toml"], ["backend", "scripts"]],
+ ["plugin example", ["examples/plugins/hello-panel/multica.plugin.json"], ["backend"]],
["shell installer", ["scripts/install.sh"], ["scripts", "installer"]],
["PowerShell installer", ["scripts/install.ps1.test.ps1"], ["installer"]],
["cleanup script", ["scripts/drop-database.sh"], ["scripts"]],