-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathazp-nodejs.yaml
55 lines (48 loc) · 1.89 KB
/
azp-nodejs.yaml
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
54
55
steps:
- task: DotNetCoreCLI@2
displayName: '$(Label_NodeJS) Restore and build "UiPath.CoreIpc.csproj"'
inputs:
projects: '$(DotNet_MainProjectPath)'
arguments: '--configuration $(NodeJS_DotNet_BuildConfiguration) --framework netstandard2.0 -p:Version="$(FullVersion)"'
- task: DotNetCoreCLI@2
displayName: '$(Label_NodeJS) Restore and build "UiPath.CoreIpc.NodeInterop.csproj"'
inputs:
projects: '$(NodeJS_DotNetNodeInteropProject)'
arguments: '--configuration $(NodeJS_DotNet_BuildConfiguration) --framework net5.0 -p:Version="$(FullVersion)"'
- task: Npm@1
displayName: '$(Label_NodeJS) Write $[FullVersion] to package.json'
inputs:
command: 'custom'
workingDir: '$(NodeJS_ProjectPath)'
customCommand: 'version $(FullVersion) --allow-same-version'
- task: Npm@1
displayName: '$(Label_NodeJS) Restore'
inputs:
command: 'install'
workingDir: $(NodeJS_ProjectPath)
customRegistry: 'useFeed'
customFeed: '424ca518-1f12-456b-a4f6-888197fc15ee'
- task: Npm@1
displayName: '$(Label_NodeJS) Build'
inputs:
command: 'custom'
workingDir: $(NodeJS_ProjectPath)
customCommand: 'run build'
- task: Npm@1
displayName: '$(Label_NodeJS) Run unit tests'
inputs:
command: 'custom'
workingDir: $(NodeJS_ProjectPath)
customCommand: 'run test'
- task: PublishTestResults@2
displayName: '$(Label_NodeJS) Publish test results'
condition: succeededOrFailed()
inputs:
testRunner: JUnit
workingDir: $(NodeJS_ProjectPath)
testResultsFiles: './src/Clients/nodejs/reports/test-results.xml'
- task: PublishCodeCoverageResults@1
displayName: '$(Label_NodeJS) Publish code coverage results'
inputs:
codeCoverageTool: 'cobertura'
summaryFileLocation: './src/Clients/nodejs/reports/coverage/cobertura-coverage.xml'