forked from healum/DigitalHealthCheck
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathci-pipeline.yml
53 lines (50 loc) · 1.49 KB
/
ci-pipeline.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# Starter pipeline
# Start with a minimal pipeline that you can customize to build and deploy your code.
# Add steps that build, run tests, deploy, and more:
# https://aka.ms/yaml
pool:
vmImage: windows-latest
trigger: none
jobs:
- job: UnitTests
steps:
- task: DotNetCoreCLI@2
inputs:
command: 'restore'
projects: '**/*.csproj'
feedsToUse: 'select'
vstsFeed: 'a7d8157c-026d-49af-b367-fdceee14af27/5764f58e-4df2-488a-8190-56cf928a710c'
- task: DotNetCoreCLI@2
inputs:
command: 'test'
projects: 'DigitalHealthCheckCommon.Tests/DigitalHealthCheckCommon.Tests.csproj'
testRunTitle: 'Common Project Tests'
- task: DotNetCoreCLI@2
condition: succeededOrFailed()
inputs:
command: 'test'
projects: 'DigitalHealthCheckTests/DigitalHealthCheckWeb.Tests.csproj'
testRunTitle: 'Web Project Tests'
- job: BlazorTests
steps:
- task: Npm@1
inputs:
command: 'ci'
workingDir: 'DigitalHealthCheckWeb'
- task: DotNetCoreCLI@2
inputs:
command: 'restore'
projects: '**/*.csproj'
feedsToUse: 'select'
vstsFeed: 'a7d8157c-026d-49af-b367-fdceee14af27/5764f58e-4df2-488a-8190-56cf928a710c'
- task: Npm@1
inputs:
command: 'custom'
workingDir: 'DigitalHealthCheckWeb'
customCommand: 'run build'
- task: DotNetCoreCLI@2
condition: succeeded()
inputs:
command: 'test'
projects: 'BlazorComponentTests/BlazorComponentTests.csproj'
testRunTitle: 'Blazor Component Tests'