Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Post error test results to Slack #4404

Merged
merged 15 commits into from
Feb 26, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
47 changes: 37 additions & 10 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
orbs:
macos: circleci/[email protected]
slack: circleci/slack@4.10.1
slack: circleci/slack@5.0.0
# Disabled until compatible with M1: codecov: codecov/[email protected]
# codecov: codecov/[email protected]

Expand Down Expand Up @@ -92,6 +92,13 @@ aliases:
only: main

commands:
slack-notify-on-fail:
steps:
- slack/notify:
branch_pattern: main
channel: 'feed-circleci-ios-failures'
event: fail
template: basic_fail_1
set-maximum-duration:
parameters:
seconds:
Expand Down Expand Up @@ -461,6 +468,7 @@ jobs:
- run:
name: Check pods and deployment targets
command: bundle exec fastlane check_pods
- slack-notify-on-fail

spm-release-build:
executor:
Expand Down Expand Up @@ -590,6 +598,7 @@ jobs:
- store_artifacts:
path: fastlane/test_output
destination: scan-test-output
- slack-notify-on-fail

run-revenuecat-ui-ios-18:
executor:
Expand Down Expand Up @@ -623,6 +632,7 @@ jobs:
- store_artifacts:
path: fastlane/test_output
destination: scan-test-output
- slack-notify-on-fail

spm-revenuecat-ui-watchos:
executor:
Expand Down Expand Up @@ -698,6 +708,7 @@ jobs:
- store_artifacts:
path: fastlane/test_output/xctest
destination: scan-test-output
- slack-notify-on-fail

run-test-ios-17:
executor:
Expand Down Expand Up @@ -726,6 +737,7 @@ jobs:
- store_artifacts:
path: fastlane/test_output/xctest
destination: scan-test-output
- slack-notify-on-fail

run-test-ios-16:
executor:
Expand Down Expand Up @@ -943,7 +955,6 @@ jobs:
steps:
- run-backend-tests:
test_plan: "BackendIntegrationTests-SK2"

backend-integration-tests-other:
executor:
name: macos-executor
Expand All @@ -964,7 +975,6 @@ jobs:
steps:
- run-backend-tests:
test_plan: "BackendIntegrationTests-CustomEntitlements"

release-checks:
executor:
name: macos-executor
Expand Down Expand Up @@ -1080,6 +1090,7 @@ jobs:
- run:
name: Prepare next version
command: bundle exec fastlane prepare_next_version
- slack-notify-on-fail

installation-tests-cocoapods:
executor:
Expand Down Expand Up @@ -1188,6 +1199,7 @@ jobs:
path: fastlane/test_output
- store_artifacts:
path: fastlane/test_output
- slack-notify-on-fail

danger:
docker:
Expand Down Expand Up @@ -1296,6 +1308,7 @@ jobs:
- run:
name: Build Paywalls Tester
command: bundle exec fastlane build_paywalls_tester_for_emerge
- slack-notify-on-fail

deploy-to-spm:
docker:
Expand Down Expand Up @@ -1344,13 +1357,27 @@ workflows:
- not: << pipeline.parameters.generate_snapshots >>
- not: << pipeline.parameters.generate_revenuecatui_snapshots >>
jobs:
- lint
- run-test-ios-17
- run-test-ios-18
- pod-lib-lint
- run-revenuecat-ui-ios-17
- run-revenuecat-ui-ios-18
- emerge_purchases_ui_snapshot_tests
- lint:
context:
- slack-secrets-ios
- run-test-ios-17:
context:
- slack-secrets-ios
- run-test-ios-18:
context:
- slack-secrets-ios
- pod-lib-lint:
context:
- slack-secrets-ios
- run-revenuecat-ui-ios-17:
context:
- slack-secrets-ios
- run-revenuecat-ui-ios-18:
context:
- slack-secrets-ios
- emerge_purchases_ui_snapshot_tests:
context:
- slack-secrets-ios

create-tag:
when:
Expand Down