name: 'Build'

trigger:
- main

variables:
  DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true

jobs:
- job: BuildWindows
  displayName: 'Windows Server 2022'
  pool:
    vmImage: 'windows-latest'

  steps:
    - task: UseDotNet@2
      displayName: 'Install .NET'
      inputs:
        useGlobalJson: true
    - task: NuGetAuthenticate@1
    - script: ./publish.cmd Release
      displayName: 'Build'
    - powershell: ./.github/porcelain.ps1
      displayName: Migration Changes
    - script: dotnet test --no-restore
      displayName: 'Test'
