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'
@@ -156,6 +159,12 @@ jobs:
156
159
- uses : actions/setup-go@v5
157
160
with :
158
161
go-version-file : " go.mod"
162
+ - name : Docker Login
163
+ uses : docker/login-action@v3
164
+ with :
165
+ registry : quay.io
166
+ username : ${{ secrets.QUAY_USERNAME }}
167
+ password : ${{ secrets.QUAY_PASSWORD }}
159
168
- name : Download build artifacts
160
169
uses : actions/download-artifact@v4
161
170
with :
0 commit comments