Skip to content
Merged
Show file tree
Hide file tree
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
18 changes: 18 additions & 0 deletions .github/workflows/daily-cli-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,3 +48,21 @@ jobs:
kosli_reporting_api_token: ${{ secrets.KOSLI_PUBLIC_API_TOKEN }}
kosli_querying_api_token: ${{ secrets.KOSLI_API_TOKEN_PROD }}
sonarqube_token: ${{ secrets.KOSLI_SONARQUBE_TOKEN }}

slack-notification-on-failure:
runs-on: ubuntu-24.04
permissions:
actions: read
contents: read
needs:
[
set-trail-name,
test,
]
if: ${{ always() && contains(join(needs.*.result, ','), 'failure') && github.ref == 'refs/heads/master' }}
steps:
- name: Slack Notification on Failure
uses: kosli-dev/reusable-actions/.github/actions/send-ci-failure-slack-message@main
with:
slack_url: ${{ secrets.MERKELY_SLACK_CI_FAILURES_WEBHOOK }}
github_token: ${{ secrets.GITHUB_TOKEN }}
20 changes: 20 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,3 +88,23 @@ jobs:
slack_channel: ci-failures
kosli_api_token: ${{ secrets.KOSLI_PUBLIC_API_TOKEN }}
snyk_token: ${{ secrets.SNYK_TOKEN }}

slack-notification-on-failure:
runs-on: ubuntu-24.04
permissions:
actions: read
contents: read
needs:
[
pre-build,
init-kosli,
test,
docker
]
if: ${{ always() && contains(join(needs.*.result, ','), 'failure') && github.ref == 'refs/heads/master' }}
steps:
- name: Slack Notification on Failure
uses: kosli-dev/reusable-actions/.github/actions/send-ci-failure-slack-message@main
with:
slack_url: ${{ secrets.MERKELY_SLACK_CI_FAILURES_WEBHOOK }}
github_token: ${{ secrets.GITHUB_TOKEN }}
28 changes: 28 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -250,3 +250,31 @@ jobs:
tag: ${{ needs.pre-build.outputs.tag }}
AWS_ACCOUNT_ID: 585008075785
AWS_REGION: eu-central-1

slack-notification-on-failure:
runs-on: ubuntu-24.04
permissions:
actions: read
contents: read
needs:
[
pre-build,
init-kosli,
never-alone-trail,
test,
docker,
goreleaser,
binary-provenance,
homebrew-pr,
docs-gen,
evidence-reporter-upload-package-and-deploy,
environment-reporter-upload-package-and-deploy,
environment-reporter-upload-layer
]
if: ${{ always() && contains(join(needs.*.result, ','), 'failure') && github.ref == 'refs/heads/master' }}
steps:
- name: Slack Notification on Failure
uses: kosli-dev/reusable-actions/.github/actions/send-ci-failure-slack-message@main
with:
slack_url: ${{ secrets.MERKELY_SLACK_CI_FAILURES_WEBHOOK }}
github_token: ${{ secrets.GITHUB_TOKEN }}
43 changes: 2 additions & 41 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -97,17 +97,7 @@ jobs:
--flow ${{ inputs.FLOW_NAME }}
--trail ${{ inputs.TRAIL_NAME }}
--org ${{ inputs.KOSLI_ORG }}
--compliant=${{ steps.lint.outcome == 'success' }}

- name: Slack Notification on Failure
if: ${{ failure() }}
uses: rtCamp/action-slack-notify@v2
env:
SLACK_CHANNEL: ${{ secrets.slack_channel }}
SLACK_COLOR: ${{ job.status }}
SLACK_TITLE: Lint Failed in CLI repository
SLACK_USERNAME: GithubActions
SLACK_WEBHOOK: ${{ secrets.slack_webhook }}
--compliant=${{ steps.lint.outcome == 'success' }}

test:
name: Test
Expand Down Expand Up @@ -176,16 +166,6 @@ jobs:
if: ${{ inputs.report_results }}
uses: codecov/codecov-action@v4

- name: Slack Notification on Failure
if: ${{ failure() }}
uses: rtCamp/action-slack-notify@v2
env:
SLACK_CHANNEL: ${{ secrets.slack_channel }}
SLACK_COLOR: ${{ job.status }}
SLACK_TITLE: Test Failed in CLI repository
SLACK_USERNAME: GithubActions
SLACK_WEBHOOK: ${{ secrets.slack_webhook }}

snyk-code-test:
if: ${{ inputs.run_snyk }}
name: Snyk Code Test
Expand Down Expand Up @@ -222,16 +202,6 @@ jobs:
# --trail ${{ inputs.TRAIL_NAME }}
# --scan-results snyk-code.json
# --org ${{ inputs.KOSLI_ORG }}

# - name: Slack Notification on Failure
# if: ${{ failure() }}
# uses: rtCamp/action-slack-notify@v2
# env:
# SLACK_CHANNEL: ${{ secrets.slack_channel }}
# SLACK_COLOR: ${{ job.status }}
# SLACK_TITLE: Snyk Code Failed in CLI repository
# SLACK_USERNAME: GithubActions
# SLACK_WEBHOOK: ${{ secrets.slack_webhook }}

snyk-dependency-test:
if: ${{ inputs.run_snyk }}
Expand Down Expand Up @@ -269,13 +239,4 @@ jobs:
# --trail ${{ inputs.TRAIL_NAME }}
# --scan-results snyk-dependency.json
# --org ${{ inputs.KOSLI_ORG }}

# - name: Slack Notification on Failure
# if: ${{ failure() }}
# uses: rtCamp/action-slack-notify@v2
# env:
# SLACK_CHANNEL: ${{ secrets.slack_channel }}
# SLACK_COLOR: ${{ job.status }}
# SLACK_TITLE: Snyk Test Failed in CLI repository
# SLACK_USERNAME: GithubActions
# SLACK_WEBHOOK: ${{ secrets.slack_webhook }}