27 строки
589 B
YAML
27 строки
589 B
YAML
# Node.js
|
|
# Build a general Node.js project with npm.
|
|
# Add steps that analyze code, save build artifacts, deploy, and more:
|
|
# https://docs.microsoft.com/azure/devops/pipelines/languages/javascript
|
|
|
|
parameters:
|
|
name: ''
|
|
vmImage: ''
|
|
|
|
jobs:
|
|
- job: ${{ parameters.name }}
|
|
pool:
|
|
vmImage: ${{ parameters.vmImage }}
|
|
strategy:
|
|
matrix:
|
|
node_10_x:
|
|
node_version: 10.x
|
|
node_12_x:
|
|
node_version: 12.x
|
|
steps:
|
|
- task: NodeTool@0
|
|
inputs:
|
|
versionSpec: $(node_version)
|
|
displayName: 'Install Node.js'
|
|
- script: npm install
|
|
- script: npm test
|