Created
December 15, 2019 10:41
-
-
Save dzeyelid/e19dea2da86240127af13d86f6a92743 to your computer and use it in GitHub Desktop.
azure-pipelines.yml sample for "Check! Code Coverage with Jest on Azure DevOps"
This file contains hidden or 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
steps: | |
- task: NodeTool@0 | |
inputs: | |
versionSpec: '10.x' | |
displayName: 'Install Node.js' | |
- script: | | |
npm install | |
npm run coverage | |
displayName: 'npm install and output coverage' | |
- task: PublishCodeCoverageResults@1 | |
inputs: | |
codeCoverageTool: Cobertura | |
summaryFileLocation: $(System.DefaultWorkingDirectory)/coverage/cobertura-coverage.xml |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Have you ever written a script that will block a PR if coverage numbers falls below certain percentage.