-
Notifications
You must be signed in to change notification settings - Fork 569
Expand file tree
/
Copy pathanalyze.yml
More file actions
52 lines (43 loc) · 1.64 KB
/
Copy pathanalyze.yml
File metadata and controls
52 lines (43 loc) · 1.64 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
jobs:
- job: Analyze
condition: and(succeededOrFailed(), ne(variables['Skip.Analyze'], 'true'))
timeoutInMinutes: 120
dependsOn: []
steps:
- checkout: self
fetchDepth: 0
- template: /eng/pipelines/templates/steps/install-dotnet.yml
- template: /eng/common/pipelines/templates/steps/eng-common-workflow-enforcer.yml
- template: /eng/common/pipelines/templates/steps/create-authenticated-npmrc.yml
- task: UseNode@1
displayName: 'Install Node.js 24'
inputs:
version: '24.x'
- task: Powershell@2
displayName: "Run source analysis"
inputs:
pwsh: true
filePath: $(Build.SourcesDirectory)/eng/scripts/Analyze-Code.ps1
env:
AZURE_MCP_COLLECT_TELEMETRY: 'false'
# Run AOT analysis only on Linux x64
- template: /eng/pipelines/templates/steps/analyze-aot-compact.yml
parameters:
runtime: 'linux-x64'
sourceDirectory: $(Build.SourcesDirectory)
- template: /eng/common/pipelines/templates/steps/check-spelling.yml
- template: /eng/common/pipelines/templates/steps/verify-links.yml
parameters:
Condition: succeededOrFailed()
Directory: ""
CheckLinkGuidance: $true
${{ if eq(variables['Build.Reason'], 'PullRequest') }}:
Urls: (eng/common/scripts/get-markdown-files-from-changed-files.ps1)
- pwsh: |
# Verify that the package README.md files do not contain invalid headers or comment annotations
$hasFailures = & "$(Build.SourcesDirectory)/eng/scripts/Process-PackageReadMe.ps1" -Command "validate-all"
if ($hasFailures) {
exit 1
}
displayName: 'Validate Package README.md files'
condition: succeededOrFailed()