Created
April 13, 2020 14:09
-
-
Save jdunkerley/3ee989aa52a6daf3b9dc3810c933c759 to your computer and use it in GitHub Desktop.
React CI Pipeline for Azure DevOps
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
trigger: | |
- master | |
pool: | |
vmImage: 'ubuntu-latest' | |
steps: | |
- task: NodeTool@0 | |
inputs: | |
versionSpec: '10.x' | |
displayName: 'Install Node.js' | |
- script: | | |
yarn install | |
displayName: 'yarn install' | |
- script: | | |
yarn lint | |
displayName: 'yarn lint' | |
- script: | | |
CI=true yarn test | |
displayName: 'yarn test' | |
- task: PublishTestResults@2 | |
condition: succeededOrFailed() | |
inputs: | |
testRunner: JUnit | |
testResultsFiles: '**/junit.xml' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment