From e04cde24ffc5cf63d1f1847278b1b5f3e76e45ec Mon Sep 17 00:00:00 2001 From: Toni Rico Date: Wed, 5 Feb 2025 12:44:16 +0100 Subject: [PATCH] Only run slack-notify command on jobs running in main --- .circleci/config.yml | 160 ++++++++----------------------------------- 1 file changed, 29 insertions(+), 131 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index a4378ade44..87858cb904 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -418,7 +418,6 @@ jobs: name: SPM Release Build command: swift build -c release --target RevenueCat no_output_timeout: 30m - - slack-notify spm-release-build-xcode-16: executor: @@ -431,7 +430,6 @@ jobs: name: SPM Release Build command: swift build -c release --target RevenueCat no_output_timeout: 30m - - slack-notify spm-release-build-xcode-15: executor: @@ -444,7 +442,6 @@ jobs: name: SPM Release Build command: swift build -c release --target RevenueCat no_output_timeout: 30m - - slack-notify spm-xcode-14-1: executor: @@ -461,7 +458,6 @@ jobs: name: SPM RevenueCatUI Release Build command: swift build -c release --target RevenueCatUI no_output_timeout: 30m - - slack-notify pod-lib-lint: executor: @@ -487,7 +483,6 @@ jobs: name: SPM RevenueCatUI Release Build command: swift build -c release --target RevenueCatUI no_output_timeout: 30m - - slack-notify api-tests: executor: @@ -498,7 +493,6 @@ jobs: - run: name: API Tests command: bundle exec fastlane run_api_tests - - slack-notify spm-receipt-parser: executor: @@ -509,7 +503,6 @@ jobs: name: SPM Receipt Parser command: swift build -c release --target ReceiptParser no_output_timeout: 30m - - slack-notify spm-revenuecat-ui-ios-15: executor: @@ -539,7 +532,6 @@ jobs: - store_artifacts: path: fastlane/test_output destination: scan-test-output - - slack-notify spm-revenuecat-ui-ios-16: executor: @@ -573,7 +565,6 @@ jobs: - store_artifacts: path: fastlane/test_output destination: scan-test-output - - slack-notify run-revenuecat-ui-ios-17: executor: @@ -666,7 +657,6 @@ jobs: - store_artifacts: path: fastlane/test_output destination: scan-test-output - - slack-notify run-test-macos: executor: name: macos-executor @@ -689,7 +679,6 @@ jobs: - store_artifacts: path: fastlane/test_output/xctest destination: scan-test-output - - slack-notify run-test-ios-18: executor: @@ -779,7 +768,6 @@ jobs: - store_artifacts: path: fastlane/test_output/xctest destination: scan-test-output - - slack-notify run-test-ios-15: executor: name: macos-executor @@ -811,7 +799,6 @@ jobs: - store_artifacts: path: fastlane/test_output/xctest destination: scan-test-output - - slack-notify run-test-tvos: executor: @@ -831,7 +818,6 @@ jobs: - store_artifacts: path: fastlane/test_output/xctest destination: scan-test-output - - slack-notify run-test-watchos: executor: name: macos-executor @@ -858,7 +844,6 @@ jobs: - store_artifacts: path: fastlane/test_output/xctest destination: scan-test-output - - slack-notify run-test-ios-14: executor: @@ -895,7 +880,6 @@ jobs: - store_artifacts: path: fastlane/test_output/xctest destination: scan-test-output - - slack-notify run-test-ios-13: executor: name: macos-executor @@ -930,7 +914,6 @@ jobs: - store_artifacts: path: fastlane/test_output/xctest destination: scan-test-output - - slack-notify build-tv-watch-and-macos: executor: @@ -942,7 +925,6 @@ jobs: name: Build tvOS, watchOS and macOS command: bundle exec fastlane build_tv_watch_mac no_output_timeout: 30m - - slack-notify build-visionos: executor: @@ -954,14 +936,12 @@ jobs: name: Build visionOS command: bundle exec fastlane build_visionos no_output_timeout: 30m - - slack-notify backend-integration-tests-SK1: executor: name: macos-executor steps: - run-backend-tests: test_plan: "BackendIntegrationTests-SK1" - - slack-notify backend-integration-tests-SK2: executor: @@ -969,14 +949,12 @@ jobs: steps: - run-backend-tests: test_plan: "BackendIntegrationTests-SK2" - - slack-notify backend-integration-tests-other: executor: name: macos-executor steps: - run-backend-tests: test_plan: "BackendIntegrationTests-Other" - - slack-notify backend-integration-tests-offline: executor: @@ -984,7 +962,6 @@ jobs: steps: - run-backend-tests: test_plan: "BackendIntegrationTests-Offline" - - slack-notify backend-integration-tests-custom-entitlements: executor: @@ -992,7 +969,6 @@ jobs: steps: - run-backend-tests: test_plan: "BackendIntegrationTests-CustomEntitlements" - - slack-notify release-checks: executor: name: macos-executor @@ -1027,7 +1003,6 @@ jobs: - store_artifacts: path: RevenueCatUI.xcframework.zip destination: RevenueCatUI.xcframework.zip - - slack-notify docs-build: executor: @@ -1044,7 +1019,6 @@ jobs: command: bundle exec fastlane build_docs environment: DOCS_IOS_VERSION: "17.4" - - slack-notify docs-deploy: executor: name: macos-executor @@ -1060,7 +1034,6 @@ jobs: command: bundle exec fastlane build_and_publish_docs environment: DOCS_IOS_VERSION: "17.4" - - slack-notify make-release: executor: @@ -1074,7 +1047,6 @@ jobs: name: Deploy new version command: bundle exec fastlane release no_output_timeout: 30m - - slack-notify push-revenuecat-pod: executor: name: macos-executor @@ -1086,7 +1058,6 @@ jobs: name: Deploy new version command: bundle exec fastlane push_revenuecat_pod no_output_timeout: 30m - - slack-notify push-revenuecatui-pod: executor: @@ -1099,7 +1070,6 @@ jobs: name: Deploy new version command: bundle exec fastlane push_revenuecatui_pod no_output_timeout: 30m - - slack-notify prepare-next-version: executor: name: macos-executor @@ -1128,7 +1098,6 @@ jobs: bundle exec pod install - scan-and-archive: directory: Tests/InstallationTests/CocoapodsInstallation - - slack-notify installation-tests-swift-package-manager: executor: name: macos-executor @@ -1141,7 +1110,6 @@ jobs: directory: Tests/InstallationTests/SPMInstallation/ - scan-and-archive-all-platforms: directory: Tests/InstallationTests/SPMInstallation/ - - slack-notify installation-tests-custom-entitlement-computation-swift-package-manager: executor: @@ -1155,7 +1123,6 @@ jobs: directory: Tests/InstallationTests/SPMCustomEntitlementComputationInstallation/ - scan: directory: Tests/InstallationTests/SPMCustomEntitlementComputationInstallation/ - - slack-notify installation-tests-receipt-parser: executor: name: macos-executor @@ -1168,7 +1135,6 @@ jobs: directory: Tests/InstallationTests/ReceiptParserInstallation/ - scan-and-archive-all-platforms: directory: Tests/InstallationTests/ReceiptParserInstallation/ - - slack-notify installation-tests-carthage: executor: @@ -1191,7 +1157,6 @@ jobs: - install-dependencies-scan-and-archive: directory: Tests/InstallationTests/CarthageInstallation/ - - slack-notify installation-tests-xcode-direct-integration: executor: @@ -1203,7 +1168,6 @@ jobs: - install-dependencies-scan-and-archive: directory: Tests/InstallationTests/XcodeDirectInstallation/ - - slack-notify lint: executor: @@ -1250,7 +1214,6 @@ jobs: - run: name: Tag branch command: bundle exec fastlane tag_current_branch - - slack-notify release-train: executor: name: macos-executor @@ -1262,7 +1225,6 @@ jobs: - run: name: Create automatic PR command: bundle exec fastlane automatic_bump github_rate_limit:10 - - slack-notify integration-tests-all: executor: name: macos-executor @@ -1286,7 +1248,6 @@ jobs: - store_artifacts: path: fastlane/test_output/xctest destination: scan-test-output - - slack-notify loadshedder-integration-tests-v3: executor: @@ -1303,7 +1264,6 @@ jobs: - compress_result_bundle: directory: fastlane/test_output/xctest/ios bundle_name: v3LoadShedderIntegration - - slack-notify deploy-purchase-tester: executor: @@ -1321,7 +1281,6 @@ jobs: - run: name: Submit Purchase Tester command: bundle exec fastlane deploy_purchase_tester dry_run:<< parameters.dry_run >> - - slack-notify emerge_purchases_ui_snapshot_tests: executor: @@ -1353,7 +1312,6 @@ jobs: git remote set-url origin https://github.com/RevenueCat/purchases-ios-spm.git git push origin git push --tags - - slack-notify workflows: version: 2 @@ -1515,96 +1473,36 @@ workflows: - "run-from-github-comments" - << pipeline.parameters.GHA_Meta >> jobs: - - backend-integration-tests-SK1: - context: - - slack-secrets-ios - - backend-integration-tests-SK2: - context: - - slack-secrets-ios - - backend-integration-tests-custom-entitlements: - context: - - slack-secrets-ios - - backend-integration-tests-other: - context: - - slack-secrets-ios - - build-tv-watch-and-macos: - context: - - slack-secrets-ios - - build-visionos: - context: - - slack-secrets-ios - - docs-build: - context: - - slack-secrets-ios - - run-test-ios-14: - context: - - slack-secrets-ios - - run-test-ios-15: - context: - - slack-secrets-ios - - run-test-ios-16: - context: - - slack-secrets-ios - - run-test-macos: - context: - - slack-secrets-ios - - run-test-tvos: - context: - - slack-secrets-ios - - run-test-watchos: - context: - - slack-secrets-ios - - spm-receipt-parser: - context: - - slack-secrets-ios - - spm-release-build: - context: - - slack-secrets-ios - - spm-release-build-xcode-14: - context: - - slack-secrets-ios - - spm-release-build-xcode-15: - context: - - slack-secrets-ios - - spm-revenuecat-ui-ios-15: - context: - - slack-secrets-ios - - spm-revenuecat-ui-ios-16: - context: - - slack-secrets-ios - - run-revenuecat-ui-ios-17: - context: - - slack-secrets-ios - - run-revenuecat-ui-ios-18: - context: - - slack-secrets-ios - - spm-revenuecat-ui-watchos: - context: - - slack-secrets-ios - - installation-tests-cocoapods: - context: - - slack-secrets-ios - - installation-tests-swift-package-manager: - context: - - slack-secrets-ios - - installation-tests-custom-entitlement-computation-swift-package-manager: - context: - - slack-secrets-ios - - installation-tests-carthage: - context: - - slack-secrets-ios - - installation-tests-xcode-direct-integration: - context: - - slack-secrets-ios - - installation-tests-receipt-parser: - context: - - slack-secrets-ios - - api-tests: - context: - - slack-secrets-ios + - backend-integration-tests-SK1 + - backend-integration-tests-SK2 + - backend-integration-tests-custom-entitlements + - backend-integration-tests-other + - build-tv-watch-and-macos + - build-visionos + - docs-build + - run-test-ios-14 + - run-test-ios-15 + - run-test-ios-16 + - run-test-macos + - run-test-tvos + - run-test-watchos + - spm-receipt-parser + - spm-release-build + - spm-release-build-xcode-14 + - spm-release-build-xcode-15 + - spm-revenuecat-ui-ios-15 + - spm-revenuecat-ui-ios-16 + - run-revenuecat-ui-ios-17 + - run-revenuecat-ui-ios-18 + - spm-revenuecat-ui-watchos + - installation-tests-cocoapods + - installation-tests-swift-package-manager + - installation-tests-custom-entitlement-computation-swift-package-manager + - installation-tests-carthage + - installation-tests-xcode-direct-integration + - installation-tests-receipt-parser + - api-tests - deploy-purchase-tester: - context: - - slack-secrets-ios dry_run: true - emerge_purchases_ui_snapshot_tests