-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: add slack notificaitons (#4658)
* add slack notificaitons * add new line * casing convention
- Loading branch information
1 parent
4b3ebfd
commit 79adc29
Showing
4 changed files
with
62 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,3 +32,15 @@ jobs: | |
DETECT_TIMEOUT: 6000 | ||
DETECT_YARN_EXCLUDED_WORKSPACES: test-packages/** | ||
DETECT_YARN_DEPENDENCY_TYPES_EXCLUDED: NON_PRODUCTION | ||
- if: failure() || cancelled() | ||
name: Slack Notify | ||
uses: rtCamp/[email protected] | ||
env: | ||
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} | ||
SLACK_USERNAME: SDK Pipeline Bot | ||
SLACK_TITLE: Blackduck scan ${{ job.status }} | ||
SLACK_MESSAGE: ' ' | ||
MSG_MINIMAL: event,actions url | ||
SLACK_COLOR: ${{ job.status }} | ||
SLACK_MSG_AUTHOR: ' ' | ||
SLACK_ICON: https://sap.github.io/cloud-sdk/img/logo.png |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -48,6 +48,19 @@ jobs: | |
- run: yarn test:self | ||
- run: yarn test:build-packages | ||
- run: yarn test:type | ||
- if: ${{ github.event_name != 'pull_request' && (failure() || cancelled()) }} | ||
name: Slack Notify | ||
uses: rtCamp/[email protected] | ||
env: | ||
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} | ||
SLACK_USERNAME: SDK Pipeline Bot | ||
SLACK_TITLE: Build tests ${{ job.status }} (${{ matrix.version }}) | ||
SLACK_MESSAGE: ' ' | ||
MSG_MINIMAL: event,actions url | ||
SLACK_COLOR: ${{ job.status }} | ||
SLACK_MSG_AUTHOR: ' ' | ||
SLACK_ICON: https://sap.github.io/cloud-sdk/img/logo.png | ||
|
||
checks: | ||
if: inputs.canary-release == false | ||
runs-on: ubuntu-latest | ||
|
@@ -77,6 +90,19 @@ jobs: | |
name: API Doc Check | ||
- run: yarn check:license | ||
name: License Check | ||
- if: ${{ github.event_name != 'pull_request' && (failure() || cancelled()) }} | ||
name: Slack Notify | ||
uses: rtCamp/[email protected] | ||
env: | ||
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} | ||
SLACK_USERNAME: SDK Pipeline Bot | ||
SLACK_TITLE: Build checks ${{ job.status }} (${{ matrix.version }}) | ||
SLACK_MESSAGE: ' ' | ||
MSG_MINIMAL: event,actions url | ||
SLACK_COLOR: ${{ job.status }} | ||
SLACK_MSG_AUTHOR: ' ' | ||
SLACK_ICON: https://sap.github.io/cloud-sdk/img/logo.png | ||
|
||
e2e-tests: | ||
if: inputs.canary-release == false | ||
runs-on: ubuntu-latest | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,3 +14,15 @@ jobs: | |
with: | ||
report-branch: fosstars-report | ||
token: '${{ secrets.GH_CLOUD_SDK_JS_ADMIN_WRITE_TOKEN }}' | ||
- if: failure() || cancelled() | ||
name: Slack Notify | ||
uses: rtCamp/[email protected] | ||
env: | ||
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} | ||
SLACK_USERNAME: SDK Pipeline Bot | ||
SLACK_TITLE: Fosstars scan ${{ job.status }} | ||
SLACK_MESSAGE: ' ' | ||
MSG_MINIMAL: event,actions url | ||
SLACK_COLOR: ${{ job.status }} | ||
SLACK_MSG_AUTHOR: ' ' | ||
SLACK_ICON: https://sap.github.io/cloud-sdk/img/logo.png |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,3 +36,15 @@ jobs: | |
working-directory: test-packages/memory-tests/sdk-canary/ | ||
- run: yarn ts-node scripts/compare-memory-usage.ts $(cat ./test-packages/memory-tests/sdk-v2/result.txt) $(cat ./test-packages/memory-tests/sdk-canary/result.txt) | ||
name: compare v2 and canary | ||
- if: failure() || cancelled() | ||
name: Slack Notify | ||
uses: rtCamp/[email protected] | ||
env: | ||
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} | ||
SLACK_USERNAME: SDK Pipeline Bot | ||
SLACK_TITLE: Memory tests ${{ job.status }} | ||
SLACK_MESSAGE: ' ' | ||
MSG_MINIMAL: event,actions url | ||
SLACK_COLOR: ${{ job.status }} | ||
SLACK_MSG_AUTHOR: ' ' | ||
SLACK_ICON: https://sap.github.io/cloud-sdk/img/logo.png |