Skip to content

Commit d6d1809

Browse files
Merge pull request #1789 from algolia/chore/MAGE-1361-slack-notifications
MAGE-1361: Add slack notifications to CircleCI
2 parents 43f4b1d + f094abf commit d6d1809

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

.circleci/config.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ version: 2.1
22

33
orbs:
44
php: circleci/[email protected]
5+
slack: circleci/[email protected]
56

67
executors:
78
magento-executor:
@@ -158,6 +159,17 @@ jobs:
158159
working_directory: ~/Sites
159160
command: |
160161
bin/cli bash -c "cd ./dev/tests/integration && export $(cat .env | xargs) && ../../../vendor/bin/phpunit --debug --exclude-group problematic ../../../vendor/algolia/algoliasearch-magento-2/Test/Integration/"
162+
163+
notify:
164+
docker:
165+
- image: cimg/base:current
166+
steps:
167+
- slack/notify:
168+
event: fail
169+
template: basic_fail_1
170+
- slack/notify:
171+
event: pass
172+
template: success_tagged_deploy_1
161173

162174
workflows:
163175
magento-build-and-test-workflow:
@@ -167,6 +179,8 @@ workflows:
167179
parameters:
168180
php-version: ["8.2"]
169181
magento-version: ["2.4.6-p11", "2.4.7-p6"]
182+
- notify:
183+
context: mage-slack
170184
magento-integration-test-workflow:
171185
when:
172186
or:
@@ -180,3 +194,5 @@ workflows:
180194
parameters:
181195
php-version: ["8.2"]
182196
magento-version: ["2.4.7-p6"]
197+
- notify:
198+
context: mage-slack

0 commit comments

Comments
 (0)