-
-
Save Jeroen-VdB/891ea231cf56a9811fcc6aff11f3dd94 to your computer and use it in GitHub Desktop.
.NET 6 Azure Pipeline Unit Tests
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
variables: | |
- name: solutionPath | |
value: '**/*.sln' | |
pool: | |
vmImage: 'ubuntu-latest' | |
stages: | |
- stage: Test | |
displayName: Build and test solution | |
jobs: | |
- job: Test | |
displayName: Run tests | |
steps: | |
- task: UseDotNet@2 | |
displayName: "Use .NET 6.x" | |
inputs: | |
version: '6.0.x' | |
packageType: sdk | |
- task: DotNetCoreCLI@2 | |
displayName: Restore Solutions | |
inputs: | |
command: 'restore' | |
feedsToUse: 'select' | |
projects: '$(solutionPath)' | |
- task: DotNetCoreCLI@2 | |
displayName: Run all tests | |
inputs: | |
command: 'test' | |
projects: '$(solutionPath)' | |
publishTestResults: true | |
testRunTitle: '$(Build.SourceBranchName)_$(Build.BuildId)' | |
arguments: '--no-restore --configuration release' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment