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