@@ -3,6 +3,16 @@ name: Integration Test
3
3
run-name : |
4
4
Integration Test on ${{ inputs.test-platform }}-${{ inputs.test-architecture }} (${{ inputs.test-run == 'all' && 'all' || format('{0}={1}', inputs.test-run, inputs.test-parameter) }})
5
5
6
+ env :
7
+ DEFAULT_TEST_PLATFORM : kind-1.31.0
8
+ DEFAULT_TEST_ARCHITECTURE : amd64
9
+ DEFAULT_TEST_RUN : all
10
+ DEFAULT_TEST_PARAMETER : " " # Unused when the test-run is 'all'
11
+ TEST_PLATFORM : ${{ inputs.test-platform }}
12
+ TEST_ARCHITECTURE : ${{ inputs.test-architecture }}
13
+ TEST_RUN : ${{ inputs.test-run }}
14
+ TEST_PARAMETER : ${{ inputs.test-parameter }}
15
+
6
16
on :
7
17
schedule :
8
18
# At 00:00 on Sunday. See: https://crontab.guru/#0_0_*_*_0
54
64
name : Run Integration Test
55
65
runs-on : ubuntu-latest
56
66
steps :
67
+ - name : Override integration test options for scheduled run
68
+ if : github.event_name == 'schedule'
69
+ shell : bash
70
+ run : |
71
+ set -euo pipefail
72
+
73
+ echo "TEST_PLATFORM=$DEFAULT_TEST_PLATFORM" | tee -a "$GITHUB_ENV"
74
+ echo "TEST_ARCHITECTURE=$DEFAULT_TEST_ARCHITECTURE" | tee -a "$GITHUB_ENV"
75
+ echo "TEST_RUN=$DEFAULT_TEST_RUN" | tee -a "$GITHUB_ENV"
76
+ echo "TEST_PARAMETER=$DEFAULT_TEST_PARAMETER" | tee -a "$GITHUB_ENV"
77
+
57
78
- uses : actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
58
79
with :
59
80
submodules : recursive
62
83
id : test
63
84
uses : stackabletech/actions/run-integration-test@5b66858af3597c4ea34f9b33664b8034a1d28427 # v0.3.0
64
85
with :
65
- test-platform : ${{ inputs.test-platform }}-${{ inputs.test-architecture }}
66
- test-run : ${{ inputs.test-run }}
67
- test-parameter : ${{ inputs.test-parameter }}
86
+ test-platform : ${{ env.TEST_PLATFORM }}-${{ env.TEST_ARCHITECTURE }}
87
+ test-run : ${{ env.TEST_RUN }}
88
+ test-parameter : ${{ env.TEST_PARAMETER }}
68
89
replicated-api-token : ${{ secrets.REPLICATED_API_TOKEN }}
69
90
70
91
- name : Send Notification
0 commit comments