extension_ci: Improve job orchestration (#49407)

This fixes an issue where some changes that should trigger more checks
would go unnoticed.

Release Notes:

- N/A
This commit is contained in:
Finn Evers 2026-02-17 22:54:17 +01:00 committed by GitHub
parent d900b2b656
commit 3b438222ef
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 2 deletions

View file

@ -44,7 +44,7 @@ jobs:
}
check_pattern "check_rust" '^(Cargo.lock|Cargo.toml|.*\.rs)$' -qP
check_pattern "check_extension" '^.*\.scm$' -qP
check_pattern "check_extension" '^(extension\.toml|.*\.scm)$' -qP
outputs:
check_rust: ${{ steps.filter.outputs.check_rust }}
check_extension: ${{ steps.filter.outputs.check_extension }}

View file

@ -17,7 +17,8 @@ const EXTENSION_RUST_TARGET: &str = "wasm32-wasip2";
// This is used by various extensions repos in the zed-extensions org to run automated tests.
pub(crate) fn extension_tests() -> Workflow {
let should_check_rust = PathCondition::new("check_rust", r"^(Cargo.lock|Cargo.toml|.*\.rs)$");
let should_check_extension = PathCondition::new("check_extension", r"^.*\.scm$");
let should_check_extension =
PathCondition::new("check_extension", r"^(extension\.toml|.*\.scm)$");
let orchestrate =
orchestrate_without_package_filter(&[&should_check_rust, &should_check_extension]);