Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
ci: Run license check more often (#64375)
Finn Evers9d956a090b41
diff --git a/.github/workflows/run_tests.yml b/.github/workflows/run_tests.ymlindex b77e66a4e77..eaa7a8f8780 100644--- a/.github/workflows/run_tests.yml+++ b/.github/workflows/run_tests.yml@@ -114,7 +114,7 @@ jobs:check_pattern "run_action_checks" '^\.github/(workflows/|actions/|actionlint.yml)|tooling/xtask|script/' -qPcheck_pattern "run_docs" '^(docs/|crates/.*\.rs)' -qP- check_pattern "run_licenses" '^(Cargo.lock|script/.*licenses)' -qP+ check_pattern "run_licenses" '^(Cargo\.lock$|script/.*licenses|(?:.*/)?LICENSE[^/]*$)' -qPcheck_pattern "run_tests" '^(docs/|script/update_top_ranking_issues/|\.github/(ISSUE_TEMPLATE|workflows/(?!run_tests))|extensions/)' -qvP# Detect changed extension directories (excluding extensions/workflows)CHANGED_EXTENSIONS=$(echo "$CHANGED_FILES" | grep -oP '^extensions/[^/]+(?=/)' | sort -u | grep -v '^extensions/workflows$' || true)diff --git a/tooling/xtask/src/tasks/workflows/run_tests.rs b/tooling/xtask/src/tasks/workflows/run_tests.rsindex 7ab25bcdec9..25981b4259b 100644--- a/tooling/xtask/src/tasks/workflows/run_tests.rs+++ b/tooling/xtask/src/tasks/workflows/run_tests.rs@@ -36,8 +36,10 @@ pub(crate) fn run_tests() -> Workflow {"run_action_checks",r"^\.github/(workflows/|actions/|actionlint.yml)|tooling/xtask|script/",);- let should_check_licences =- PathCondition::new("run_licenses", r"^(Cargo.lock|script/.*licenses)");+ let should_check_licences = PathCondition::new(+ "run_licenses",+ r"^(Cargo\.lock$|script/.*licenses|(?:.*/)?LICENSE[^/]*$)",+ );let orchestrate = orchestrate(&[&should_check_scripts,