Skip to content

Commit f60fc0f

Browse files
authored
Always run tests when inputs.run_tests is true (#8166)
1 parent 04ec20e commit f60fc0f

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -717,6 +717,7 @@ jobs:
717717
stable-tag: ${{ needs.checks.outputs.stable_tag }}
718718
authenticated: ${{ needs.checks.outputs.forked_workflow != 'true' }}
719719
k8s-version: ${{ matrix.k8s }}
720+
force: ${{ inputs.run_tests }}
720721

721722
smoke-tests-plus:
722723
if: ${{ inputs.force || (inputs.run_tests && inputs.run_tests || true) || needs.checks.outputs.docs_only != 'true' }}
@@ -744,6 +745,7 @@ jobs:
744745
stable-tag: ${{ needs.checks.outputs.stable_tag }}
745746
authenticated: ${{ needs.checks.outputs.forked_workflow != 'true' }}
746747
k8s-version: ${{ matrix.k8s }}
748+
force: ${{ inputs.run_tests }}
747749

748750
smoke-tests-nap:
749751
if: ${{ inputs.force || (inputs.run_tests && inputs.run_tests || true) || needs.checks.outputs.docs_only != 'true' }}
@@ -771,6 +773,7 @@ jobs:
771773
stable-tag: ${{ needs.checks.outputs.stable_tag }}
772774
authenticated: ${{ needs.checks.outputs.forked_workflow != 'true' }}
773775
k8s-version: ${{ matrix.k8s }}
776+
force: ${{ inputs.run_tests }}
774777

775778
tag-stable:
776779
name: Tag tested image as stable

.github/workflows/setup-smoke.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@ on:
3333
k8s-version:
3434
required: true
3535
type: string
36+
force:
37+
required: true
38+
type: boolean
3639

3740
defaults:
3841
run:
@@ -81,6 +84,9 @@ jobs:
8184
if docker pull ${{ steps.image_details.outputs.name }}:${{ steps.image_details.outputs.stable_tag }}; then
8285
echo "exists=true" >> $GITHUB_OUTPUT
8386
fi
87+
if [ "${{ inputs.force }}" = "true" ]; then
88+
echo "exists=false" >> $GITHUB_OUTPUT
89+
fi
8490
if: ${{ inputs.authenticated }}
8591

8692
- name: NAP modules
@@ -103,15 +109,15 @@ jobs:
103109
fail-on-cache-miss: true
104110
if: ${{ !inputs.authenticated }}
105111

106-
- name: Check if test image exists
112+
- name: Check if pytest image exists
107113
id: check-image
108114
run: |
109115
docker manifest inspect "gcr.io/f5-gcs-7899-ptg-ingrss-ctlr/dev/test-runner:${{ hashFiles('./tests/requirements.txt', './tests/Dockerfile') || 'latest' }}"
110116
shell: bash
111117
continue-on-error: true
112118
if: ${{ inputs.authenticated }}
113119

114-
- name: Build Test-Runner Container
120+
- name: Build Pytest-Runner Container
115121
uses: docker/build-push-action@263435318d21b8e681c14492fe198d362a7d2c83 # v6.18.0
116122
with:
117123
file: tests/Dockerfile

0 commit comments

Comments
 (0)