-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathazure-pipelines.yml
79 lines (63 loc) · 1.89 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
trigger:
- master
pool:
vmImage: windows-latest
variables:
buildConfiguration: 'Release'
steps:
- task: PowerPlatformToolInstaller@0
inputs:
DefaultVersion: true
- checkout: self
submodules: true
- task: Npm@1
displayName: 'Install NPM packages'
inputs:
command: 'install'
- task: Npm@1
displayName: 'Run Jest Tests'
inputs:
command: 'custom'
customCommand: 'test'
- task: PublishCodeCoverageResults@1
inputs:
codeCoverageTool: Cobertura
summaryFileLocation: $(System.DefaultWorkingDirectory)/coverage/cobertura-coverage.xml
- script: dotnet build --configuration $(buildConfiguration)
workingDirectory: 'Solutions'
displayName: 'dotnet build -c $(buildConfiguration)'
- task: PublishPipelineArtifact@1
displayName: 'Publish Artifact: Solution'
inputs:
targetPath: 'Solutions/bin/Release/Solutions.zip'
artifact: 'Solution'
publishLocation: 'pipeline'
- task: PublishPipelineArtifact@1
displayName: 'Publish Artifact: SourceMap'
inputs:
targetPath: 'out/controls/StyledSwitch/main.map'
artifact: 'SourceMaps'
publishLocation: 'pipeline'
- script: git rev-parse HEAD > ..\github.txt
workingDirectory: StyledSwitch
displayName: 'Current GitHub CommitId'
- script: git rev-parse HEAD > devops.txt
displayName: 'Current DevOps CommitId'
- task: PublishPipelineArtifact@1
displayName: 'Publish Artifact: GitHub.txt'
inputs:
targetPath: 'github.txt'
artifact: 'GitHubCommit'
publishLocation: 'pipeline'
- task: PublishPipelineArtifact@1
displayName: 'Publish Artifact: DevOps.txt'
inputs:
targetPath: 'devops.txt'
artifact: 'DevOpsCommit'
publishLocation: 'pipeline'
- task: PowerPlatformChecker@0
inputs:
PowerPlatformSPN: 'artjola'
FilesToAnalyze: 'Solutions/bin/Release/Solutions.zip'
RuleSet: '083a2ef5-7e0e-4754-9d88-9455142dc08b'
FailOnPowerAppsCheckerAnalysisError: false