|
1 | 1 | --- |
2 | | -# This is an example workflow that will then be moved to operator-templating |
3 | 2 | name: Integration Test |
4 | 3 | run-name: | |
5 | 4 | Integration Test on ${{ inputs.test-platform }}-${{ inputs.test-architecture }} (${{ inputs.test-run == 'all' && 'all' || format('{0}={1}', inputs.test-run, inputs.test-parameter) }}) |
6 | 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 | + |
7 | 16 | on: |
8 | 17 | workflow_dispatch: |
9 | 18 | inputs: |
|
19 | 28 | - aks-1.28 |
20 | 29 | - aks-1.27 |
21 | 30 | - eks-1.29 |
22 | | - - eks-1.28 |
| 31 | + - eks-1.28 |
23 | 32 | - eks-1.27 |
24 | 33 | - gke-1.29 |
25 | 34 | - gke-1.28 |
|
48 | 57 | default: smoke |
49 | 58 |
|
50 | 59 | jobs: |
51 | | - placeholder: |
52 | | - name: Run Integration Tests |
| 60 | + test: |
| 61 | + name: Run Integration Test |
53 | 62 | runs-on: ubuntu-latest |
54 | 63 | steps: |
| 64 | + - name: Override integration test options for scheduled run |
| 65 | + if: github.event_name == 'schedule' |
| 66 | + shell: bash |
| 67 | + run: | |
| 68 | + set -euo pipefail |
| 69 | +
|
| 70 | + echo "TEST_PLATFORM=$DEFAULT_TEST_PLATFORM" | tee -a "$GITHUB_ENV" |
| 71 | + echo "TEST_ARCHITECTURE=$DEFAULT_TEST_ARCHITECTURE" | tee -a "$GITHUB_ENV" |
| 72 | + echo "TEST_RUN=$DEFAULT_TEST_RUN" | tee -a "$GITHUB_ENV" |
| 73 | + echo "TEST_PARAMETER=$DEFAULT_TEST_PARAMETER" | tee -a "$GITHUB_ENV" |
| 74 | +
|
55 | 75 | - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 |
56 | 76 | with: |
57 | 77 | submodules: recursive |
58 | 78 |
|
59 | 79 | - name: Run Integration Test |
60 | 80 | id: test |
61 | | - uses: stackabletech/actions/run-integration-test@run-integration-test |
| 81 | + uses: stackabletech/actions/run-integration-test@5b66858af3597c4ea34f9b33664b8034a1d28427 # v0.3.0 |
62 | 82 | with: |
63 | | - test-platform: ${{ inputs.test-platform }}-${{ inputs.test-architecture }} |
64 | | - test-run: ${{ inputs.test-run }} |
65 | | - test-parameter: ${{ inputs.test-parameter }} |
| 83 | + test-platform: ${{ env.TEST_PLATFORM }}-${{ env.TEST_ARCHITECTURE }} |
| 84 | + test-run: ${{ env.TEST_RUN }} |
| 85 | + test-parameter: ${{ env.TEST_PARAMETER }} |
66 | 86 | replicated-api-token: ${{ secrets.REPLICATED_API_TOKEN }} |
67 | 87 |
|
68 | 88 | - name: Send Notification |
|
0 commit comments