name: $(SourceBranchName)-$(Date:yyyyMMdd).$(rev:r)

trigger:
  branches:
    include:
    - main
    - dev
    - feature/*
    - hotfix/*
    - v2
    - v3

pr: none

variables:
- group: open-api-extension-variable-group
- name: TestRunStatus
  value: ''

stages:
- stage: Build
  displayName: 'WIP: Build Stage'

  jobs:
  - job: BuildTest
    displayName: 'WIP: Build and Test on'

    strategy:
      matrix:
        linux:
          imageName: 'ubuntu-latest'
        mac:
          imageName: 'macos-latest'
        windows:
          imageName: 'windows-latest'

    pool:
      vmImage: '$(imageName)'

    workspace:
      clean: all

    steps:
    - template: 'template-steps-build-test.yaml'
      parameters:
        configuration: 'Debug'
