12
12
# At 00:00 on Sunday. See: https://crontab.guru/#0_0_*_*_0
13
13
# - cron: "0 0 * * 0"
14
14
workflow_dispatch :
15
+ inputs :
16
+ test-mode :
17
+ description : Test mode
18
+ required : true
19
+ type : choice
20
+ options :
21
+ - custom
22
+ - profile
23
+ test-mode-input :
24
+ description : The profile or the runner used
25
+ required : true
26
+ test-suite :
27
+ description : Name of the test-suite. Only used if test-mode is `custom`
28
+ test :
29
+ description : Name of the test. Only used of test-mode is `custom`
15
30
16
31
jobs :
17
32
test :
@@ -20,36 +35,42 @@ jobs:
20
35
steps :
21
36
- uses : actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
22
37
with :
38
+ persist-credentials : false
23
39
submodules : recursive
24
40
41
+ # TODO: Enable the scheduled runs which hard-code what profile to use
25
42
- name : Run Integration Test
26
43
id : test
27
- uses : stackabletech/actions/run-integration-test@990f74b08b1c3693fb80814c20c44a97531ebf75 # TODO: Use released version
44
+ uses : stackabletech/actions/run-integration-test@e667cf50055aa43bd454125499843f20c4ebaf3d # TODO: Use released version
28
45
with :
29
46
replicated-api-token : ${{ secrets.REPLICATED_API_TOKEN }}
30
- test-profile : schedule
47
+ test-mode-input : ${{ inputs.test-mode-input }}
48
+ test-suite : ${{ inputs.test-suite }}
49
+ test-mode : ${{ inputs.test-mode }}
50
+ test : ${{ inputs.test }}
31
51
32
- - name : Send Notification
33
- if : ${{ failure() }}
34
- env :
35
- SLACK_BOT_TOKEN : ${{ secrets.SLACK_INTEGRATION_TEST_TOKEN }}
36
- uses : slackapi/slack-github-action@37ebaef184d7626c5f204ab8d3baff4262dd30f0 # v1.27.0
37
- with :
38
- channel-id : " C07UYJYSMSN" # notifications-integration-tests
39
- payload : |
40
- {
41
- "text": "Integration Test *${{ github.repository }}* failed",
42
- "attachments": [
43
- {
44
- "pretext": "Started at ${{ steps.test.outputs.start-time }}, failed at ${{ steps.test.outputs.end-time }}",
45
- "color": "#aa0000",
46
- "actions": [
47
- {
48
- "type": "button",
49
- "text": "Go to integration test run",
50
- "url": "${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"
51
- }
52
- ]
53
- }
54
- ]
55
- }
52
+ # TODO: Comment back in once integration tests itself work. Also add improvements to the notifications.
53
+ # - name: Send Notification
54
+ # if: ${{ failure() }}
55
+ # env:
56
+ # SLACK_BOT_TOKEN: ${{ secrets.SLACK_INTEGRATION_TEST_TOKEN }}
57
+ # uses: slackapi/slack-github-action@37ebaef184d7626c5f204ab8d3baff4262dd30f0 # v1.27.0
58
+ # with:
59
+ # channel-id: "C07UYJYSMSN" # notifications-integration-tests
60
+ # payload: |
61
+ # {
62
+ # "text": "Integration Test for *${{ github.repository }}* failed",
63
+ # "attachments": [
64
+ # {
65
+ # "pretext": "Started at ${{ steps.test.outputs.start-time }}, failed at ${{ steps.test.outputs.end-time }}",
66
+ # "color": "#aa0000",
67
+ # "actions": [
68
+ # {
69
+ # "type": "button",
70
+ # "text": "Go to integration test run",
71
+ # "url": "${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"
72
+ # }
73
+ # ]
74
+ # }
75
+ # ]
76
+ # }
0 commit comments