From 78fe4af3ad651d0b0d0785056198ca95608e9caa Mon Sep 17 00:00:00 2001 From: Don Isaac Date: Wed, 16 Oct 2024 02:36:07 -0400 Subject: [PATCH] ci: skip coverage/benchmarks on more unrelated files (#6616) Enhance file filters that trigger coverage and benchmark jobs by adding more ignored globs. --- .github/workflows/benchmark.yml | 10 ++++++++++ .github/workflows/ci.yml | 9 +++++++++ 2 files changed, 19 insertions(+) diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml index 12913c215aaf0..a90be724cc8c5 100644 --- a/.github/workflows/benchmark.yml +++ b/.github/workflows/benchmark.yml @@ -19,6 +19,11 @@ on: types: [opened, synchronize] paths: - "**/*.rs" + - "!apps/**" + - "!tasks/website/**" + - "!tasks/ast_tools/**" + - "!tasks/coverage/**" + - "!crates/oxc_language_server/**" - "napi/parser/**/*.js" - "napi/parser/**/*.mjs" - "Cargo.lock" @@ -30,6 +35,11 @@ on: - main paths: - "**/*.rs" + - "!apps/**" + - "!tasks/website/**" + - "!tasks/ast_tools/**" + - "!tasks/coverage/**" + - "!crates/oxc_language_server/**" - "napi/parser/**/*.js" - "napi/parser/**/*.mjs" - "Cargo.lock" diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0c7dbdee783cd..05688973ca72c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -211,9 +211,18 @@ jobs: with: filters: | src: + - '!.github/**' + - '!.vscode/**' + - '!apps/**' + - '!editors/**' + - '!napi/**' + - '!npm/**' + - '!wasm/**' - '!crates/oxc_linter/**' - '!crates/oxc_wasm/**' - '!crates/oxc_language_server/**' + - '!tasks/**' + - 'tasks/conformance/**' - uses: ./.github/actions/clone-submodules if: steps.filter.outputs.src == 'true'