From 702db211717efa4cc1389e64549c0a60b44392fd Mon Sep 17 00:00:00 2001 From: Guillaume Bernos Date: Tue, 24 Nov 2026 15:59:36 +0100 Subject: [PATCH] ci: run macOS jobs when a plugin's ios/ sources change Each plugin's macos//Sources files are symlinks into ios/, so an edit to shared Swift or Objective-C code shows up in the diff only under ios/. The macos paths-filter matched macos/** and darwin/** but not ios/**, so those PRs skipped every macOS e2e job and swift-integration-macos even though macOS compiles the same files (seen on #18878). Add ios/** to the macos filter in reusable_e2e_changes.yaml (per-plugin e2e workflows) and reusable_repo_changes.yaml (e2e smoke and all_plugins). iOS-only files such as the iOS podspec now run macOS too; running an extra job is preferred over skipping a needed one. --- .github/workflows/reusable_e2e_changes.yaml | 4 ++++ .github/workflows/reusable_repo_changes.yaml | 6 ++++++ 2 files changed, 10 insertions(+) diff --git a/.github/workflows/reusable_e2e_changes.yaml b/.github/workflows/reusable_e2e_changes.yaml index 951ab4f485d3..502d2fc71f9e 100644 --- a/.github/workflows/reusable_e2e_changes.yaml +++ b/.github/workflows/reusable_e2e_changes.yaml @@ -95,6 +95,9 @@ jobs: # separate input - plugin package names are unique repo-wide. # Both this file and the caller are in `shared`: a change to either # must run everything. + # `macos` also matches `ios/**`: each plugin's `macos/` sources are + # symlinks into `ios/`, and git reports an edit at the link target, + # so a Swift change shared by both platforms only shows up there. filters: | shared: &shared - 'packages/firebase_core/**' @@ -121,6 +124,7 @@ jobs: macos: - *shared - '${{ inputs.package-path }}/macos/**' + - '${{ inputs.package-path }}/ios/**' - '${{ inputs.package-path }}/darwin/**' - '${{ inputs.package-path }}/example/macos/**' web: diff --git a/.github/workflows/reusable_repo_changes.yaml b/.github/workflows/reusable_repo_changes.yaml index 17c6bdccf605..6368539ef0e6 100644 --- a/.github/workflows/reusable_repo_changes.yaml +++ b/.github/workflows/reusable_repo_changes.yaml @@ -78,6 +78,11 @@ jobs: # too, even though only web consumes it. Erring towards running an # extra job beats needing a glob that can express "every package # except the web ones". + # + # `macos` also matches `packages/*/*/ios/**`: each plugin's `macos/` + # sources are symlinks into `ios/`, and git reports an edit at the + # link target, so a Swift change shared by both platforms only shows + # up there. filters: | shared: &shared - 'packages/*/*/lib/**' @@ -103,6 +108,7 @@ jobs: macos: - *shared - 'packages/*/*/macos/**' + - 'packages/*/*/ios/**' - 'packages/*/*/darwin/**' - '${{ inputs.app-path }}/macos/**' web: