mirror of
https://github.com/terribleplan/next.js.git
synced 2024-01-19 02:48:18 +00:00
d43d305092
This PR is related to the issue #5713 The PR helps to publish test results for reporting in Azure Pipelines. Azure Pipelines provides excellent reporting capabilities that can be leveraged by this PR. An example report is shown in the image below. ![image](https://user-images.githubusercontent.com/13175100/48767951-e8a73580-ecdd-11e8-8e6a-20d7767d7c1b.png)
40 lines
818 B
YAML
40 lines
818 B
YAML
pool:
|
|
vmImage: 'vs2017-win2016'
|
|
|
|
strategy:
|
|
maxParallel: 10
|
|
matrix:
|
|
node-10:
|
|
node_version: ^10.10.0
|
|
node-8:
|
|
node_version: ^8.12.0
|
|
|
|
steps:
|
|
- task: NodeTool@0
|
|
inputs:
|
|
versionSpec: $(node_version)
|
|
displayName: 'Install Node.js'
|
|
|
|
- script: |
|
|
yarn install
|
|
displayName: 'Install dependencies'
|
|
|
|
- script: |
|
|
yarn bootstrap
|
|
displayName: 'Lerna bootstrap'
|
|
|
|
- script: |
|
|
yarn test
|
|
displayName: 'Run tests'
|
|
|
|
- task: PublishTestResults@2
|
|
displayName: 'Publish Test Results'
|
|
inputs:
|
|
testResultsFiles: '**junit*.xml'
|
|
testRunTitle: TestRun ${{ parameters.name }} $(node_version)
|
|
|
|
- task: PublishCodeCoverageResults@1
|
|
displayName: 'Publish code coverage results'
|
|
inputs:
|
|
codeCoverageTool: 'cobertura'
|
|
summaryFileLocation: '**/coverage/cobertura-coverage.xml' |