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

Notify CI failures on Slack #74

Merged
merged 1 commit into from Nov 22, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
23 changes: 19 additions & 4 deletions .circleci/config.yml
Expand Up @@ -6,22 +6,35 @@ orbs:
# to change this configuration every time a Solidus version is released
# or goes EOL.
solidusio_extensions: solidusio/extensions@volatile
slack: circleci/slack@4.9.3

commands:
notify:
steps:
- slack/notify:
event: fail
template: basic_fail_1
branch_pattern: master

jobs:
run-specs-with-postgres:
executor: solidusio_extensions/postgres
steps:
- solidusio_extensions/run-tests
- notify
run-specs-with-mysql:
executor: solidusio_extensions/mysql
steps:
- solidusio_extensions/run-tests
- notify

workflows:
"Run specs on supported Solidus versions":
jobs:
- run-specs-with-postgres
- run-specs-with-mysql
- run-specs-with-postgres:
context: slack-secrets
- run-specs-with-mysql:
context: slack-secrets
"Weekly run specs against master":
triggers:
- schedule:
Expand All @@ -31,5 +44,7 @@ workflows:
only:
- master
jobs:
- run-specs-with-postgres
- run-specs-with-mysql
- run-specs-with-postgres:
context: slack-secrets
- run-specs-with-mysql:
context: slack-secrets