Skip to content
This repository was archived by the owner on Jun 6, 2025. It is now read-only.

Commit 8760f54

Browse files
committed
lessgo
1 parent da16061 commit 8760f54

File tree

1 file changed

+28
-8
lines changed

1 file changed

+28
-8
lines changed

.github/workflows/nightly-test.yml

Lines changed: 28 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,18 @@
11
---
2-
# This is an example workflow that will then be moved to operator-templating
32
name: Integration Test
43
run-name: |
54
Integration Test on ${{ inputs.test-platform }}-${{ inputs.test-architecture }} (${{ inputs.test-run == 'all' && 'all' || format('{0}={1}', inputs.test-run, inputs.test-parameter) }})
65
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+
716
on:
817
workflow_dispatch:
918
inputs:
@@ -19,7 +28,7 @@ on:
1928
- aks-1.28
2029
- aks-1.27
2130
- eks-1.29
22-
- eks-1.28
31+
- eks-1.28
2332
- eks-1.27
2433
- gke-1.29
2534
- gke-1.28
@@ -48,21 +57,32 @@ on:
4857
default: smoke
4958

5059
jobs:
51-
placeholder:
52-
name: Run Integration Tests
60+
test:
61+
name: Run Integration Test
5362
runs-on: ubuntu-latest
5463
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+
5575
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
5676
with:
5777
submodules: recursive
5878

5979
- name: Run Integration Test
6080
id: test
61-
uses: stackabletech/actions/run-integration-test@run-integration-test
81+
uses: stackabletech/actions/run-integration-test@5b66858af3597c4ea34f9b33664b8034a1d28427 # v0.3.0
6282
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 }}
6686
replicated-api-token: ${{ secrets.REPLICATED_API_TOKEN }}
6787

6888
- name: Send Notification

0 commit comments

Comments
 (0)