-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathazure-pipelines.yml
55 lines (46 loc) · 1.24 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
trigger:
- main
- beta
pool:
vmImage: windows-latest
steps:
- task: UseNode@1
inputs:
version: '20.x'
- task: Npm@1
inputs:
command: 'install'
displayName: "Install NPM Dependencies"
# - task: dependency-check-build-task@6
# inputs:
# projectName: '@shko.online/componentframework-mock'
# scanPath: 'package-lock.json'
# format: 'HTML, JSON, JUNIT'
# additionalArguments: '--nvdApiKey $(NVDApiKey)'
# - task: PublishTestResults@2
# inputs:
# testResultsFormat: 'JUnit'
# testResultsFiles: 'dependency-check/*junit.xml'
# searchFolder: '$(Common.TestResultsDirectory)'
# testRunTitle: 'Dependency Check'
- task: Npm@1
inputs:
command: 'custom'
customCommand: 'test'
displayName: "Test"
- task: Npm@1
inputs:
command: 'custom'
customCommand: 'run build'
displayName: "Build"
- script: 'npx semantic-release'
displayName: 'Semantic Release'
env:
GITHUB_TOKEN: $(GITHUB_TOKEN)
NPM_TOKEN: $(NPM_TOKEN)
- task: PublishCodeCoverageResults@1
displayName: "Publish code coverage results"
condition: succeededOrFailed()
inputs:
codeCoverageTool: Cobertura
summaryFileLocation: "coverage/cobertura-coverage.xml"