File tree Expand file tree Collapse file tree 3 files changed +10
-5
lines changed Expand file tree Collapse file tree 3 files changed +10
-5
lines changed Original file line number Diff line number Diff line change 15
15
runs-on : ubuntu-latest
16
16
outputs :
17
17
sha : ${{ steps.vars.outputs.sha }}
18
+ UPDATE_FIXTURES : ${{ steps.fixtures.outputs.UPDATE_FIXTURES }}
18
19
steps :
19
20
# checkout code and setup go
20
21
- uses : actions/checkout@v4
@@ -23,12 +24,16 @@ jobs:
23
24
go-version-file : " go.mod"
24
25
# add the fixtures changed flag (UPDATE_FIXTURES) to the job output to others can use it
25
26
- name : Rebuild fixtures if necessary
27
+ id : fixtures
26
28
run : |
27
29
UPDATE_FIXTURES="$(scripts/e2e_test_fixtures.sh --check)"
28
30
if [ "${UPDATE_FIXTURES}" == "true" ]; then
29
31
# rebuild fixtures and export the images to .tar.gz files with --save
30
32
scripts/e2e_test_fixtures.sh --save
31
33
fi
34
+
35
+ # Add UPDATE_FIXTURES to the job output
36
+ echo "UPDATE_FIXTURES=${UPDATE_FIXTURES}" >> $GITHUB_OUTPUT
32
37
33
38
# build binaries and image for e2e test (includes experimental features)
34
39
- name : Build OLM Image
@@ -100,10 +105,8 @@ jobs:
100
105
KIND_CLUSTER_NAME="kind-olmv0-${i}" \
101
106
KIND_CREATE_OPTS="--kubeconfig=${E2E_KUBECONFIG_ROOT}/kubeconfig-${i}" \
102
107
HELM_INSTALL_OPTS="--kubeconfig ${E2E_KUBECONFIG_ROOT}/kubeconfig-${i}" \
108
+ UPDATE_FIXTURES="${{ needs.build.outputs.UPDATE_FIXTURES }}" \
103
109
make kind-create deploy;
104
- if [ "${{ needs.build.outputs.UPDATE_FIXTURES }}" == "true" ]; then
105
- scripts/e2e_test_fixtures.sh --kind-load
106
- fi
107
110
done
108
111
109
112
# run non-flakes if matrix-id is not 'flakes'
Original file line number Diff line number Diff line change @@ -213,7 +213,10 @@ kind-create: kind-clean #HELP Create a new kind cluster $KIND_CLUSTER_NAME (defa
213
213
.PHONY : deploy
214
214
OLM_IMAGE := quay.io/operator-framework/olm:local
215
215
deploy : $(KIND ) $(HELM ) # HELP Deploy OLM to kind cluster $KIND_CLUSTER_NAME (default: kind-olmv0) using $OLM_IMAGE (default: quay.io/operator-framework/olm:local)
216
- $(KIND ) load docker-image $(OLM_IMAGE ) --name $(KIND_CLUSTER_NAME ) ; \
216
+ $(KIND ) load docker-image $(OLM_IMAGE ) --name $(KIND_CLUSTER_NAME )
217
+ @if [ " ${UPDATE_FIXTURES} " = " true" ]; then \
218
+ scripts/e2e_test_fixtures.sh --kind-load --skip-build; \
219
+ fi
217
220
$(HELM ) upgrade --install olm deploy/chart \
218
221
--set debug=true \
219
222
--set olm.image.ref=$(OLM_IMAGE ) \
Original file line number Diff line number Diff line change @@ -54,7 +54,6 @@ while [ $# -gt 0 ]; do
54
54
* )
55
55
printf " *************************\n"
56
56
printf " * Error: Invalid argument.\n"
57
- # shellcheck disable=SC2059
58
57
printf " * Usage: %s [--opm-version=version] [--check] [--push] [--container-runtime=runtime] [--registry=registry] [--target-branch=branch] [--kind-load] [--save] [--skip-build] \n" " $0 "
59
58
printf " \n"
60
59
printf " \t--opm-version: opm version to build the fixtures against, e.g. 1.39.0\n"
You can’t perform that action at this time.
0 commit comments