@@ -46,36 +46,43 @@ jobs:
4646 # TODO: Enable the scheduled runs which hard-code what profile to use
4747 - name : Run Integration Test
4848 id : test
49- uses : stackabletech/actions/run-integration-test@48f987367d0cb42db1248d050faabcdf26218f1e # TODO: Use released version
49+ uses : stackabletech/actions/run-integration-test@c5708ea09548dc61285a9d00028c721f9fa9d9a2 # TODO: Use released version
5050 with :
5151 replicated-api-token : ${{ secrets.REPLICATED_API_TOKEN }}
5252 test-mode-input : ${{ inputs.test-mode-input }}
5353 test-suite : ${{ inputs.test-suite }}
5454 test-mode : ${{ inputs.test-mode }}
5555 test : ${{ inputs.test }}
5656
57- # TODO: Comment back in once integration tests itself work. Also add improvements to the notifications.
58- # - name: Send Notification
59- # if: ${{ failure() }}
60- # env:
61- # SLACK_BOT_TOKEN: ${{ secrets.SLACK_INTEGRATION_TEST_TOKEN }}
62- # uses: slackapi/slack-github-action@37ebaef184d7626c5f204ab8d3baff4262dd30f0 # v1.27.0
63- # with:
64- # channel-id: "C07UYJYSMSN" # notifications-integration-tests
65- # payload: |
66- # {
67- # "text": "Integration Test for *${{ github.repository }}* failed",
68- # "attachments": [
69- # {
70- # "pretext": "Started at ${{ steps.test.outputs.start-time }}, failed at ${{ steps.test.outputs.end-time }}",
71- # "color": "#aa0000",
72- # "actions": [
73- # {
74- # "type": "button",
75- # "text": "Go to integration test run",
76- # "url": "${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"
77- # }
78- # ]
79- # }
80- # ]
81- # }
57+ - name : Send Notification
58+ if : ${{ failure() || github.run_attempt > 1 }}
59+ uses : stackabletech/actions/send-slack-notification@c5708ea09548dc61285a9d00028c721f9fa9d9a2 # TODO: Use released version
60+ with :
61+ slack-token : ${{ secrets.SLACK_CONTAINER_IMAGE_TOKEN }}
62+ failed-tests : ${{ steps.test.outputs.failed-tests }}
63+ test-health : ${{ steps.test.outputs.health }}
64+ test-result : ${{ steps.test.conclusion }}
65+ channel-id : C07UYJYSMSN # notifications-integration-tests
66+ type : integration-test
67+ # env:
68+ # SLACK_BOT_TOKEN: ${{ secrets.SLACK_INTEGRATION_TEST_TOKEN }}
69+ # uses: slackapi/slack-github-action@37ebaef184d7626c5f204ab8d3baff4262dd30f0 # v1.27.0
70+ # with:
71+ # channel-id: "C07UYJYSMSN" # notifications-integration-tests
72+ # payload: |
73+ # {
74+ # "text": "Integration Test for *${{ github.repository }}* failed",
75+ # "attachments": [
76+ # {
77+ # "pretext": "Started at ${{ steps.test.outputs.start-time }}, failed at ${{ steps.test.outputs.end-time }}",
78+ # "color": "#aa0000",
79+ # "actions": [
80+ # {
81+ # "type": "button",
82+ # "text": "Go to integration test run",
83+ # "url": "${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"
84+ # }
85+ # ]
86+ # }
87+ # ]
88+ # }
0 commit comments