forked from microsoft/FluidHelloWorld
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathazure-pipelines.yml
48 lines (44 loc) · 1.17 KB
/
azure-pipelines.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
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.
# FluidHelloWorld build for CI
pr:
- main
- main-azure
pool: "Small"
steps:
- task: ComponentGovernanceComponentDetection@0
inputs:
scanType: "Register"
verbosity: "Verbose"
alertWarningLevel: "High"
- task: UseNode@1
displayName: Use Node 14.x
inputs:
version: 14.x
- task: Npm@1
displayName: Install
inputs:
command: "custom"
customCommand: "install"
- task: Npm@1
displayName: Build
inputs:
command: "custom"
customCommand: "run build"
- task: Npm@1
displayName: Lint
inputs:
command: "custom"
customCommand: "run lint"
- task: Npm@1
displayName: Test
inputs:
command: "custom"
customCommand: "run ci:test"
- task: PublishTestResults@2
displayName: Publish Test Results
inputs:
testResultsFormat: "JUnit"
testResultsFiles: "**/*junit-report.xml"
searchFolder: "$(System.DefaultWorkingDirectory)"
condition: succeededOrFailed()