Skip to content

Instantly share code, notes, and snippets.

@jdunkerley
Created April 13, 2020 14:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jdunkerley/3ee989aa52a6daf3b9dc3810c933c759 to your computer and use it in GitHub Desktop.
Save jdunkerley/3ee989aa52a6daf3b9dc3810c933c759 to your computer and use it in GitHub Desktop.
React CI Pipeline for Azure DevOps
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