diff --git a/.github/workflows/integration_test.yml b/.github/workflows/integration_test.yml index efd176d4b..d6a8040b1 100644 --- a/.github/workflows/integration_test.yml +++ b/.github/workflows/integration_test.yml @@ -72,7 +72,7 @@ jobs: - name: Check disk space run: df -h - ## Upload diagnostics if integration test step failed. + # Upload diagnostics if integration test step failed. - name: Upload diagnostics if: ${{ failure() }} uses: actions/upload-artifact@v4 @@ -80,3 +80,13 @@ jobs: name: kubernetes-integration-test-diag path: /tmp/ktf-diag* if-no-files-found: ignore + + # Push Notifications to Slack if integration test step failed + - name: Notify Slack on Test Failure + if: failure() + uses: slackapi/slack-github-action@v2.0.0 + with: + webhook: ${{ secrets.SLACK_WEBHOOK_URL }} + webhook-type: incoming-webhook + payload: | + "Nightly Kubernetes bpfman Operator integration tests failed! Go version: ${{ matrix.go }} and OCI runtime: ${{ matrix.oci_bin }}"