# NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file.

trigger:
  branches:
    include:
    - main
    - hotfix/*
    - release/*
    - restapi*
  paths:
    include:
    - sdk/identity/
    - sdk/core/

pr:
  branches:
    include:
    - main
    - feature/*
    - hotfix/*
    - release/*
    - restapi*
  paths:
    include:
    - sdk/identity/
    - sdk/core/

extends:
  template: ../../eng/pipelines/templates/stages/archetype-sdk-client.yml
  parameters:
    ServiceDirectory: identity
    # Override the base matrix due to https://github.com/Azure/azure-sdk-for-python/issues/17837
    MatrixConfigs:
      - Name: identity_ci_matrix
        Path: sdk/identity/platform-matrix.json
        Selection: sparse
        GenerateVMJobs: true
    TestProxy: true
    Artifacts:
     - name: azure-identity
       safeName: azureidentity
     - name: azure-identity-broker
       safeName: azureidentitybroker
