Skip to content

Cbang/simplify entry point2 #714

Cbang/simplify entry point2

Cbang/simplify entry point2 #714

name: CI orchestrator
on:
pull_request:
branches:
- main
merge_group:
types: [checks_requested]
jobs:
#
# License and Markdown Check
#
ci_base:
uses: Energinet-DataHub/.github/.github/workflows/ci-base.yml@v14
with:
skip_license_check: true
secrets:
dh3serviceaccount_privatekey: ${{ secrets.dh3serviceaccount_privatekey }}
#
# Reusable CI
#
ci_unit:
uses: ./.github/workflows/reusable-ci.yml
with:
packages_directory: ${{ github.workspace }}
tests_directory: tests/**/unit
create_versioned_release: true
#
# Reusable CI
#
ci_integration:
uses: ./.github/workflows/reusable-ci.yml
with:
packages_directory: ${{ github.workspace }}
tests_directory: tests
environment: AzureAuth
azure_tenant_id: ${{ vars.integration_test_azure_tenant_id }}
azure_subscription_id: ${{ vars.integration_test_azure_subscription_id }}
azure_spn_id: ${{ vars.integration_test_azure_spn_id_oidc }}
azure_keyvault_url: ${{ vars.integration_test_azure_keyvault_url }}
create_versioned_release: true
# Branch policy status check
allow_merge_ci_orchestrator:
runs-on: ubuntu-latest
needs: [ci_base, ci_unit, ci_integration]
if: |
always()
steps:
- name: Verify if merge is allowed
run: |
echo "${{ toJSON(needs) }}"
if [[ ${{ contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled') }} = true ]]; then
echo "Failed"
exit 1
fi