svg-layout-designer-react/azure-pipelines.yml
2022-08-08 14:38:01 +00:00

37 lines
No EOL
771 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 16.x LTS'
- script: |
node --version
node ./test-server/node-http.js &
npm ci
npm run test:nowatch
displayName: 'Test on Node.js 16.x LTS'
- task: NodeTool@0
inputs:
versionSpec: '>=18.7.0'
displayName: 'Install Node.js Latest'
- script: |
node --version
node ./test-server/node-http.js &
npm ci
npm run test:nowatch
displayName: 'Test on Node.js 18.x Latest'