|
1 | 1 | --- |
2 | 2 | name: Integration Test |
3 | | -run-name: | |
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 | 3 |
|
6 | 4 | env: |
7 | 5 | DEFAULT_TEST_PLATFORM: kind-1.31.0 |
8 | 6 | DEFAULT_TEST_ARCHITECTURE: amd64 |
9 | 7 | DEFAULT_TEST_RUN: all |
10 | 8 | 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 | 9 |
|
16 | 10 | on: |
17 | 11 | # schedule: |
18 | 12 | # At 00:00 on Sunday. See: https://crontab.guru/#0_0_*_*_0 |
19 | 13 | # - cron: "0 0 * * 0" |
20 | 14 | workflow_dispatch: |
21 | | - inputs: |
22 | | - test-platform: |
23 | | - description: | |
24 | | - The test platform to run on |
25 | | - required: true |
26 | | - type: choice |
27 | | - options: |
28 | | - - kind-1.31.2 |
29 | | - - kind-1.30.6 |
30 | | - - rke2-1.31.2 |
31 | | - - rke2-1.30.6 |
32 | | - - k3s-1.31.2 |
33 | | - - k3s-1.30.6 |
34 | | - - aks-1.29 |
35 | | - - aks-1.28 |
36 | | - - aks-1.27 |
37 | | - - eks-1.29 |
38 | | - - eks-1.28 |
39 | | - - eks-1.27 |
40 | | - - gke-1.29 |
41 | | - - gke-1.28 |
42 | | - - gke-1.27 |
43 | | - - okd-4.15 |
44 | | - - okd-4.14 |
45 | | - - okd-4.13 |
46 | | - test-architecture: |
47 | | - description: | |
48 | | - The architecture the tests will run on. Consult the run-integration-test action README for |
49 | | - more details on supported architectures for each distribution |
50 | | - required: true |
51 | | - type: choice |
52 | | - options: |
53 | | - - amd64 |
54 | | - - arm64 |
55 | | - test-run: |
56 | | - description: Type of test run |
57 | | - required: true |
58 | | - type: choice |
59 | | - options: |
60 | | - - all |
61 | | - - test-suite |
62 | | - - test |
63 | | - test-parameter: |
64 | | - description: Parameter to `--test-suite` or `--test` (ignored for `all`) |
65 | | - default: smoke |
66 | 15 |
|
67 | 16 | jobs: |
68 | 17 | test: |
69 | 18 | name: Run Integration Test |
70 | 19 | runs-on: ubuntu-latest |
71 | 20 | steps: |
72 | | - - name: Override integration test options for scheduled run |
73 | | - if: github.event_name == 'schedule' |
74 | | - shell: bash |
75 | | - run: | |
76 | | - set -euo pipefail |
77 | | -
|
78 | | - echo "TEST_PLATFORM=$DEFAULT_TEST_PLATFORM" | tee -a "$GITHUB_ENV" |
79 | | - echo "TEST_ARCHITECTURE=$DEFAULT_TEST_ARCHITECTURE" | tee -a "$GITHUB_ENV" |
80 | | - echo "TEST_RUN=$DEFAULT_TEST_RUN" | tee -a "$GITHUB_ENV" |
81 | | - echo "TEST_PARAMETER=$DEFAULT_TEST_PARAMETER" | tee -a "$GITHUB_ENV" |
82 | | -
|
83 | 21 | - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 |
84 | 22 | with: |
85 | 23 | submodules: recursive |
86 | 24 |
|
87 | 25 | - name: Run Integration Test |
88 | 26 | id: test |
89 | | - uses: stackabletech/actions/run-integration-test@05cb2081c8ffd34bbaaee36846f4e1892686cf55 # TODO: Use releases version |
| 27 | + uses: stackabletech/actions/run-integration-test@990f74b08b1c3693fb80814c20c44a97531ebf75 # TODO: Use released version |
90 | 28 | with: |
91 | 29 | replicated-api-token: ${{ secrets.REPLICATED_API_TOKEN }} |
92 | 30 | test-profile: schedule |
|
0 commit comments