25 lines
515 B
YAML
25 lines
515 B
YAML
# Node.js with React
|
|
# Build a Node.js project that uses React.
|
|
# Add steps that analyze code, save build artifacts, deploy, and more:
|
|
# https://docs.microsoft.com/azure/devops/pipelines/languages/javascript
|
|
|
|
trigger:
|
|
- master
|
|
- dev
|
|
- dev*
|
|
|
|
pool:
|
|
vmImage: ubuntu-latest
|
|
|
|
steps:
|
|
- task: NodeTool@0
|
|
inputs:
|
|
versionSpec: '16.x'
|
|
displayName: 'Install Node.js'
|
|
|
|
- script: |
|
|
node --version
|
|
node ./test-server/node-http.js &
|
|
npm install
|
|
npm run test:nowatch
|
|
displayName: 'npm install and test'
|