@@ -164,15 +164,15 @@ jobs:
164164 pixi-version : v0.72.0
165165 run-install : false
166166
167- <% if aws % >
167+ <% if aws and lang_config.test.aws % >
168168 - name : AWS Login
169169 uses : aws-actions/configure-aws-credentials@517a711dbcd0e402f90c77e7e2f81e849156e31d # v6.2.2
170170 with :
171171 aws-region : <{aws.region}>
172172 role-to-assume : ${{ secrets.aws_role }}
173173 role-session-name : ${{ secrets.aws_role_session_name }}
174174<% endif % >
175- <% if gcloud % >
175+ <% if gcloud and lang_config.test.gcloud % >
176176 - name : Google Cloud Login
177177 uses : google-github-actions/auth@7c6bc770dae815cd3e89ee6cdf493a5fab2cc093 # v3.0.0
178178 with :
@@ -290,7 +290,7 @@ jobs:
290290 include :
291291 # I think we only need to test one platform, but we can change that later
292292<% for config in lang_config.validation.configs % >
293- - { platform: linux, arch: amd64, runner: ubuntu-latest, service_name: "<{config.service_name}>", vendor_version: "<{config.vendor_version}>", environment: <% if config.environment %>"<{config.environment}>"<% else %>null<% endif %>, azure: <{ "true" if config.azure else "false" }> }
293+ - { platform: linux, arch: amd64, runner: ubuntu-latest, service_name: "<{config.service_name}>", vendor_version: "<{config.vendor_version}>", environment: <% if config.environment %>"<{config.environment}>"<% else %>null<% endif %>, aws: <{ "true" if config.aws else "false" }>, azure: <{ "true" if config.azure else "false" }>, gcloud: <{ "true" if config.gcloud else "false" }> }
294294<% endfor % >
295295 environment : ${{ matrix.environment }}
296296 permissions :
@@ -356,6 +356,7 @@ jobs:
356356<% if aws % >
357357 - name : AWS Login
358358 uses : aws-actions/configure-aws-credentials@517a711dbcd0e402f90c77e7e2f81e849156e31d # v6.2.2
359+ if : matrix.aws
359360 with :
360361 aws-region : <{aws.region}>
361362 role-to-assume : ${{ secrets.aws_role }}
@@ -364,6 +365,7 @@ jobs:
364365<% if gcloud % >
365366 - name : Google Cloud Login
366367 uses : google-github-actions/auth@7c6bc770dae815cd3e89ee6cdf493a5fab2cc093 # v3.0.0
368+ if : matrix.gcloud
367369 with :
368370 service_account : ${{ secrets.gcloud_service_account }}
369371 workload_identity_provider : ${{ secrets.gcloud_workload_identity_provider }}
0 commit comments