@@ -17,6 +17,9 @@ defaults:
17
17
run :
18
18
shell : bash
19
19
20
+ env :
21
+ ENABLE_EXPERIMENTAL : ${{ inputs.enable-experimental }}
22
+
20
23
permissions :
21
24
contents : read
22
25
76
79
run : |
77
80
ngf_prefix=ghcr.io/nginxinc/nginx-gateway-fabric
78
81
ngf_tag=${{ steps.ngf-meta.outputs.version }}
79
- if [ ${{ inputs.enable-experimental }} == "true" ]; then export ENABLE_EXPERIMENTAL=true; fi
80
82
export PLUS_USAGE_ENDPOINT=${{ secrets.JWT_PLUS_REPORTING_ENDPOINT }}
81
83
make generate-static-deployment PLUS_ENABLED=${{ inputs.image == 'plus' && 'true' || 'false' }} PREFIX=${ngf_prefix} TAG=${ngf_tag}
82
84
working-directory : ./tests
@@ -148,23 +150,28 @@ jobs:
148
150
ngf_prefix=ghcr.io/nginxinc/nginx-gateway-fabric
149
151
ngf_tag=${{ steps.ngf-meta.outputs.version }}
150
152
if [ ${{ github.event_name }} == "schedule" ]; then export GW_API_VERSION=main; fi
151
- if [ ${{ inputs.enable-experimental }} == "true" ]; then export ENABLE_EXPERIMENTAL=true; fi
152
153
export PLUS_USAGE_ENDPOINT=${{ secrets.JWT_PLUS_REPORTING_ENDPOINT }}
153
154
make helm-install-local${{ inputs.image == 'plus' && '-with-plus' || ''}} PREFIX=${ngf_prefix} TAG=${ngf_tag}
154
155
make deploy-updated-provisioner PREFIX=${ngf_prefix} TAG=${ngf_tag}
155
156
working-directory : ./tests
156
157
157
158
- name : Run conformance tests
158
159
run : |
159
- if [ ${{ inputs.enable-experimental }} == "true" ]; then export ENABLE_EXPERIMENTAL=true; fi
160
160
make run-conformance-tests CONFORMANCE_TAG=${{ github.sha }} NGF_VERSION=${{ github.ref_name }} CLUSTER_NAME=${{ github.run_id }}
161
161
core_result=$(cat conformance-profile.yaml | yq '.profiles[0].core.result')
162
162
extended_result=$(cat conformance-profile.yaml | yq '.profiles[0].extended.result')
163
163
if [ "${core_result}" == "failure" ] || [ "${extended_result}" == "failure" ]; then echo "Conformance test failed, see above for details." && exit 2; fi
164
164
working-directory : ./tests
165
165
166
+ - name : Upload profile to GitHub
167
+ if : ${{ inputs.enable-experimental }}
168
+ uses : actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3
169
+ with :
170
+ name : conformance-profile-${{ inputs.image }}-${{ inputs.k8s-version }}
171
+ path : ./tests/conformance-profile.yaml
172
+
166
173
- name : Upload profile to release
167
- if : ${{ startsWith(github.ref, 'refs/tags/') && inputs.enable-experimental == 'true' }}
174
+ if : ${{ startsWith(github.ref, 'refs/tags/') && inputs.enable-experimental }}
168
175
env :
169
176
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
170
177
run : gh release upload ${{ github.ref_name }} conformance-profile.yaml --clobber
0 commit comments