Skip to content

Commit 15c738e

Browse files
authored
Build and store the binary (#3043)
1 parent 4829017 commit 15c738e

File tree

2 files changed

+40
-8
lines changed

2 files changed

+40
-8
lines changed

.github/workflows/qe-ocp-418-intrusive.yaml

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,21 @@ jobs:
3838
tags: quay.io/redhat-best-practices-for-k8s/certsuite:localtest
3939
outputs: type=docker,dest=/tmp/testimage.tar
4040

41+
- name: Build the binary
42+
run: make build-certsuite-tool
43+
4144
- name: Store image as artifact
4245
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
4346
with:
4447
name: testimage
4548
path: /tmp/testimage.tar
4649

50+
- name: Store binary as artifact
51+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
52+
with:
53+
name: certsuite-binary
54+
path: ./certsuite
55+
4756
qe-ocp-418-intrusive-testing:
4857
name: QE OCP 4.18 Tests (${{ matrix.suite }} - ${{ matrix.run-type }})
4958
runs-on: ubuntu-24.04
@@ -110,6 +119,17 @@ jobs:
110119
name: testimage
111120
path: /tmp
112121

122+
- name: Download binary from artifact
123+
if: matrix.run-type == 'binary'
124+
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
125+
with:
126+
name: certsuite-binary
127+
path: .
128+
129+
- name: Make binary executable
130+
if: matrix.run-type == 'binary'
131+
run: chmod +x ./certsuite
132+
113133
- name: Load image into docker
114134
if: matrix.run-type == 'image'
115135
run: docker load --input /tmp/testimage.tar
@@ -122,10 +142,6 @@ jobs:
122142
max_attempts: 3
123143
command: cd ${GITHUB_WORKSPACE}/certsuite-qe; FEATURES=${{matrix.suite}} CERTSUITE_REPO_PATH=${GITHUB_WORKSPACE} CERTSUITE_IMAGE=${{env.TEST_CERTSUITE_IMAGE_NAME}} CERTSUITE_IMAGE_TAG=${{env.TEST_CERTSUITE_IMAGE_TAG}} JOB_ID=${{github.run_id}} DISABLE_INTRUSIVE_TESTS=false ENABLE_PARALLEL=false ENABLE_FLAKY_RETRY=true make test-features
124144

125-
- name: Build the binary
126-
if: matrix.run-type == 'binary'
127-
run: make build-certsuite-tool
128-
129145
- name: Run the tests (against binary)
130146
if: matrix.run-type == 'binary'
131147
uses: nick-fields/retry@ce71cc2ab81d554ebbe88c79ab5975992d79ba08 # v3.0.2

.github/workflows/qe-ocp-418.yaml

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,15 @@ jobs:
4444
name: testimage
4545
path: /tmp/testimage.tar
4646

47+
- name: Build the binary
48+
run: make build-certsuite-tool
49+
50+
- name: Store binary as artifact
51+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
52+
with:
53+
name: certsuite-binary
54+
path: ./certsuite
55+
4756
qe-ocp-418-testing:
4857
name: QE OCP 4.18 Tests (${{ matrix.suite }} - ${{ matrix.run-type }})
4958
runs-on: ubuntu-24.04
@@ -109,6 +118,17 @@ jobs:
109118
name: testimage
110119
path: /tmp
111120

121+
- name: Download binary from artifact
122+
if: matrix.run-type == 'binary'
123+
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
124+
with:
125+
name: certsuite-binary
126+
path: .
127+
128+
- name: Make binary executable
129+
if: matrix.run-type == 'binary'
130+
run: chmod +x ./certsuite
131+
112132
- name: Load image into docker
113133
if: matrix.run-type == 'image'
114134
run: docker load --input /tmp/testimage.tar
@@ -121,10 +141,6 @@ jobs:
121141
max_attempts: 3
122142
command: cd ${GITHUB_WORKSPACE}/certsuite-qe; FEATURES=${{matrix.suite}} CERTSUITE_REPO_PATH=${GITHUB_WORKSPACE} CERTSUITE_IMAGE=${{env.TEST_CERTSUITE_IMAGE_NAME}} CERTSUITE_IMAGE_TAG=${{env.TEST_CERTSUITE_IMAGE_TAG}} JOB_ID=${{github.run_id}} DISABLE_INTRUSIVE_TESTS=true ENABLE_PARALLEL=false ENABLE_FLAKY_RETRY=true make test-features
123143

124-
- name: Build the binary
125-
if: matrix.run-type == 'binary'
126-
run: make build-certsuite-tool
127-
128144
- name: Run the tests (against binary)
129145
if: matrix.run-type == 'binary'
130146
uses: nick-fields/retry@ce71cc2ab81d554ebbe88c79ab5975992d79ba08 # v3.0.2

0 commit comments

Comments
 (0)