diff --git a/src/commands/setup_macos_executor.yml b/src/commands/setup_macos_executor.yml index 6838eb8..96ee6ae 100644 --- a/src/commands/setup_macos_executor.yml +++ b/src/commands/setup_macos_executor.yml @@ -9,6 +9,10 @@ parameters: description: Should we cache after brew install? Defaults to true type: boolean default: true + homebrew_update: + description: Should we run brew update? Defaults to true + type: boolean + default: true steps: - run: @@ -45,10 +49,16 @@ steps: name: Verify node version command: node --version + - when: + condition: <> + steps: + - run: + name: Update brew + command: brew update >/dev/null + - run: name: Configure Detox Environment command: | - brew update >/dev/null HOMEBREW_NO_AUTO_UPDATE=1 brew tap wix/brew >/dev/null HOMEBREW_NO_AUTO_UPDATE=1 brew tap homebrew/cask >/dev/null HOMEBREW_NO_AUTO_UPDATE=1 brew install applesimutils >/dev/null diff --git a/src/jobs/android_test.yml b/src/jobs/android_test.yml index af93914..7094acc 100644 --- a/src/jobs/android_test.yml +++ b/src/jobs/android_test.yml @@ -72,6 +72,10 @@ parameters: description: Should we cache after brew install? Defaults to true type: boolean default: true + homebrew_update: + description: Should we run brew update? Defaults to true + type: boolean + default: true steps: - attach_workspace: @@ -79,6 +83,7 @@ steps: - setup_macos_executor: node_version: <> homebrew_cache: <> + homebrew_update: <> - yarn_install: cache: <> - when: diff --git a/src/jobs/ios_build.yml b/src/jobs/ios_build.yml index fc6b235..1dbf06c 100644 --- a/src/jobs/ios_build.yml +++ b/src/jobs/ios_build.yml @@ -69,6 +69,10 @@ parameters: description: Should we cache after brew install? Defaults to true type: boolean default: true + homebrew_update: + description: Should we run brew update? Defaults to true + type: boolean + default: true steps: - when: @@ -83,6 +87,7 @@ steps: - setup_macos_executor: node_version: <> homebrew_cache: <> + homebrew_update: <> - yarn_install: cache: <> cache_folder: <> diff --git a/src/jobs/ios_build_and_test.yml b/src/jobs/ios_build_and_test.yml index 7023601..afe2f75 100644 --- a/src/jobs/ios_build_and_test.yml +++ b/src/jobs/ios_build_and_test.yml @@ -87,6 +87,10 @@ parameters: description: Should we cache after brew install? Defaults to true type: boolean default: true + homebrew_update: + description: Should we run brew update? Defaults to true + type: boolean + default: true steps: - when: @@ -101,6 +105,7 @@ steps: - setup_macos_executor: node_version: <> homebrew_cache: <> + homebrew_update: <> - ios_simulator_start: device: <> - yarn_install: