-
Notifications
You must be signed in to change notification settings - Fork 142
/
azure-pipelines.yml
97 lines (84 loc) · 3.22 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
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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
pr:
branches:
include:
- main
variables:
Codeql.Enabled: true
stages:
- stage: security_compliance
displayName: 'Security & Compliance'
pool:
vmImage: 'windows-latest'
jobs:
- job: compliance
steps:
- task: PoliCheck@1
displayName: 'Run PoliCheck 🌎'
inputs:
inputType: 'Basic'
targetType: 'F'
targetArgument: '$(Build.SourcesDirectory)'
result: 'PoliCheck.xml'
optionsXS: 1
optionsPE: 1
optionsUEPATH: '$(Build.SourcesDirectory)/policheck/UserExclusion.xml'
- task: PublishBuildArtifacts@1
displayName: 'Create log artifact'
inputs:
pathToPublish: '..\_sdt\logs\PoliCheck\PoliCheck.xml'
artifactName: 'PoliCheck'
- job: security
steps:
- task: ESLint@1
displayName: 'Guardian: ESLint 🛡'
inputs:
Configuration: 'recommended'
TargetType: 'eslint'
TargetsESLint: |
$(Build.SourcesDirectory)/**/*.ts
ErrorLevel: 'warn'
- stage: build_lint
displayName: 'Build & Lint'
pool:
vmImage: 'ubuntu-latest'
jobs:
- job: lint
timeoutInMinutes: 10
steps:
- task: NodeTool@0
displayName: 'Setup Node 💾'
inputs:
versionSpec: '18.x'
- script: npm install
displayName: 'Install Dependencies 📥'
- script: npm run lint
displayName: 'Run Lint Check 🔍'
- script: npm run fmt
displayName: 'Run Format Check 🌸'
- job: build
timeoutInMinutes: 10
steps:
- task: NodeTool@0
displayName: 'Setup Node 💾'
inputs:
versionSpec: '18.x'
- script: npm install
displayName: 'Install Dependencies 📥'
- script: npm run build
displayName: 'Build Toolkit 🏗'
- task: CopyFiles@2
displayName: 'Copy to Staging 📂'
inputs:
SourceFolder: '$(System.DefaultWorkingDirectory)/dist'
Contents: |
**/*
TargetFolder: '$(Build.ArtifactStagingDirectory)'
- task: AzureArtifacts.manifest-generator-task.manifest-generator-task.ManifestGeneratorTask@0
displayName: 'Generate Manifest 🧾'
inputs:
BuildDropPath: '$(Build.ArtifactStagingDirectory)'
PackageName: 'Webview UI Toolkit for Visual Studio Code'
- task: PublishBuildArtifacts@1
displayName: 'Publish Artifacts 📦'
inputs:
ArtifactName: 'drop'