-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #119 from MiSchroe/MiSchroe/issue77
MiSchroe/issue77
- Loading branch information
Showing
9 changed files
with
560 additions
and
5,197 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,83 @@ | ||
# 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: | ||
- master | ||
|
||
strategy: | ||
matrix: | ||
linux_node16: | ||
imageName: "ubuntu-latest" | ||
versionName: "16.x" | ||
linux_node18: | ||
imageName: "ubuntu-latest" | ||
versionName: "18.x" | ||
linux_node20: | ||
imageName: "ubuntu-latest" | ||
versionName: "20.x" | ||
mac_node16: | ||
imageName: "macos-latest" | ||
versionName: "16.x" | ||
mac_node18: | ||
imageName: "macos-latest" | ||
versionName: "18.x" | ||
mac_node20: | ||
imageName: "macos-latest" | ||
versionName: "20.x" | ||
windows_node16: | ||
imageName: "windows-latest" | ||
versionName: "16.x" | ||
windows_node18: | ||
imageName: "windows-latest" | ||
versionName: "18.x" | ||
windows_node20: | ||
imageName: "windows-latest" | ||
versionName: "20.x" | ||
maxParallel: "10" | ||
|
||
pool: | ||
vmImage: $(imageName) | ||
|
||
steps: | ||
- task: NodeTool@0 | ||
inputs: | ||
versionSpec: $(versionName) | ||
displayName: "Install Node.js" | ||
|
||
- script: | | ||
npm install | ||
displayName: "npm install" | ||
- script: | | ||
npm run build | ||
displayName: "npm build" | ||
- script: | | ||
npm run test:packagejunit | ||
displayName: "npm test:package" | ||
- script: | | ||
npm run test:integrationjunit | ||
displayName: "npm test:integration" | ||
- script: | | ||
npm run test:tsjunit | ||
displayName: "npm test:ts" | ||
- task: PublishTestResults@2 | ||
condition: succeededOrFailed() | ||
inputs: | ||
testRunner: JUnit | ||
testResultsFiles: "**/test-results.xml" | ||
|
||
- script: | | ||
npm run coveragejunit | ||
displayName: "Run code coverage" | ||
- task: PublishCodeCoverageResults@1 | ||
inputs: | ||
codeCoverageTool: Cobertura | ||
summaryFileLocation: "$(System.DefaultWorkingDirectory)/**/*coverage.xml" | ||
reportDirectory: "$(System.DefaultWorkingDirectory)/**/coverage" |
Oops, something went wrong.