svg-layout-designer-react/azure-pipelines.yml
Eric Nguyen 9dcfc5f226
Some checks failed
continuous-integration/drone/push Build is failing
Merged PR 13: Fix azure-pipeline node kill
We use killall to stop node from running but az pipe catch SIGTERM.
Let's rather use SIGINT
2022-08-08 14:55:40 +00:00

41 lines
No EOL
844 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 &
jobs
npm ci
npm run test:nowatch
kill -2 %1 2>/dev/null
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 &
jobs
npm ci
npm run test:nowatch
kill -2 %1 2>/dev/null
displayName: 'Test on Node.js 18.x Latest'