2022-12-14 10:51:42 -05:00
name : e2e test qemu (MiniConstellation)
2023-02-13 07:58:34 -05:00
# The workflow is triggered by the completion of the release workflow.
# It is not called by the release pipeline to allow quicker retrying of failed tests
# The workflow only executes, after being triggered, if the triggering workflow completed successfully.
# e2e-test-release uses the same branch as the triggering workflow and not the commit of the triggering workflow. This is because the release workflow produces further commits.
2022-12-14 10:51:42 -05:00
on :
2023-02-13 07:58:34 -05:00
workflow_run :
workflows : [ "Release" ]
types : [ completed]
2022-12-14 10:51:42 -05:00
workflow_dispatch :
2023-01-06 05:49:55 -05:00
inputs :
ref :
type : string
2023-02-13 07:58:34 -05:00
default : ""
2023-01-06 05:49:55 -05:00
description : "Git ref to checkout"
workflow_call :
inputs :
ref :
type : string
2023-02-13 07:58:34 -05:00
default : ""
2023-01-06 05:49:55 -05:00
description : "Git ref to checkout"
2022-12-14 10:51:42 -05:00
jobs :
2023-02-13 07:58:34 -05:00
on-failure-quit :
runs-on : ubuntu-22.04
2023-05-04 02:16:31 -04:00
if : github.event_name == 'workflow_run' && github.event.workflow_run.conclusion != 'success'
2023-02-13 07:58:34 -05:00
steps :
- run : |
echo 'Release workflow failed, exiting..'
exit 1
2022-12-14 10:51:42 -05:00
e2e-mini :
runs-on : ubuntu-22.04
environment : e2e
2023-01-30 10:11:27 -05:00
permissions :
id-token : write
contents : read
2022-12-14 10:51:42 -05:00
steps :
- name : Checkout
id : checkout
2023-05-05 08:42:20 -04:00
uses : actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
2023-01-06 05:49:55 -05:00
with :
2023-02-13 07:58:34 -05:00
ref : ${{ inputs.ref || github.event.workflow_run.head_branch || github.head_ref }}
2022-12-14 10:51:42 -05:00
- name : Azure login OIDC
2023-01-03 04:09:02 -05:00
uses : azure/login@92a5484dfaf04ca78a94597f4f19fea633851fa2 # v1.4.7
2022-12-14 10:51:42 -05:00
with :
client-id : ${{ secrets.AZURE_E2E_MINI_CLIENT_ID }}
tenant-id : ${{ secrets.AZURE_TENANT_ID }}
subscription-id : ${{ secrets.AZURE_SUBSCRIPTION_ID }}
- name : Run e2e MiniConstellation
uses : ./.github/actions/e2e_mini
with :
azureClientID : ${{ secrets.AZURE_E2E_MINI_CLIENT_ID }}
azureSubscriptionID : ${{ secrets.AZURE_SUBSCRIPTION_ID }}
azureTenantID : ${{ secrets.AZURE_TENANT_ID }}
2023-03-20 11:05:08 -04:00
buildBuddyApiKey : ${{ secrets.BUILDBUDDY_ORG_API_KEY }}