-
Notifications
You must be signed in to change notification settings - Fork 22
Expand file tree
/
Copy pathpr-pipeline.yml
More file actions
78 lines (65 loc) · 1.71 KB
/
Copy pathpr-pipeline.yml
File metadata and controls
78 lines (65 loc) · 1.71 KB
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
# Node.js
# Build a general Node.js project with npm.
# Add steps that analyze code, save build artifacts, deploy, and more:
# https://docs.microsoft.com/azure/devops/pipelines/languages/javascript
trigger:
- main
pr:
- main
pool:
vmImage: "windows-latest"
variables:
CI: 'true'
steps:
- task: NodeTool@0
inputs:
versionSpec: "18.x"
displayName: "Install Node.js"
- task: Npm@1
displayName: "npm clean-install"
inputs:
command: "ci"
- task: Npm@1
displayName: "audit"
inputs:
command: "custom"
customCommand: "run audit"
- task: Npm@1
displayName: "npm unit test"
inputs:
command: "custom"
customCommand: "run test:unit-test"
- task: Npm@1
displayName: "build VSIX"
inputs:
command: "custom"
customCommand: "run vsix"
- task: Npm@1
displayName: "npm e2e test"
enabled: 'true'
retryCountOnTaskFailure: 5
continueOnError: 'true'
inputs:
command: "custom"
customCommand: "run test:e2e"
- task: PoliCheck@1
inputs:
inputType: "Basic"
targetType: "F"
targetArgument: "src"
result: "PoliCheck.xml"
- task: CopyFiles@2
displayName: "copy VSIX to ArtifactStagingDirectory"
inputs:
contents: '$(System.DefaultWorkingDirectory)/*.vsix'
targetFolder: $(Build.ArtifactStagingDirectory)
- task: PublishBuildArtifacts@1
displayName: "drop ArtifactStagingDirectory"
inputs:
PathtoPublish: $(Build.ArtifactStagingDirectory)
ArtifactName: VSIX
- task: PublishBuildArtifacts@1
displayName: "publish policheck results"
inputs:
PathtoPublish: "$(System.DefaultWorkingDirectory)/../_sdt/logs/PoliCheck"
ArtifactName: PoliCheck