# 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

trigger:
- master

strategy:
  matrix:
    linux_node6:
      imageName: "ubuntu-latest"
      versionName: "6.x"
    linux_node8:
      imageName: "ubuntu-latest"
      versionName: "8.x"
    linux_node10:
      imageName: "ubuntu-latest"
      versionName: "10.x"
    mac_node6:
      imageName: "macos-latest"
      versionName: "6.x"
    mac_node8:
      imageName: "macos-latest"
      versionName: "8.x"
    mac_node10:
      imageName: "macos-latest"
      versionName: "10.x"
    windows_node6:
      imageName: "windows-latest"
      versionName: "6.x"
    windows_node8:
      imageName: "windows-latest"
      versionName: "8.x"
    windows_node10:
      imageName: "windows-latest"
      versionName: "10.x"
  maxParallel: 10

pool:
  vmImage: $(imageName)

steps:
- task: NodeTool@0
  inputs:
    versionSpec: $(versionName)
  displayName: 'Install Node.js'

- script: |
    npm install
    npm run build
    npm test
  displayName: 'npm install, build and test'

# 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

trigger:
- master

strategy:
  matrix:
    linux_node8:
      imageName: "ubuntu-latest"
      versionName: "8.x"
    linux_node10:
      imageName: "ubuntu-latest"
      versionName: "10.x"
    mac_node8:
      imageName: "macos-latest"
      versionName: "8.x"
    mac_node10:
      imageName: "macos-latest"
      versionName: "10.x"
    windows_node8:
      imageName: "windows-latest"
      versionName: "8.x"
    windows_node10:
      imageName: "windows-latest"
      versionName: "10.x"
  maxParallel: 10

pool:
  vmImage: $(imageName)

steps:
- task: NodeTool@0
  inputs:
    versionSpec: $(versionName)
  displayName: 'Install Node.js'

- script: |
    npm install
    npm run build
    npm test
  displayName: 'npm install, build and test'

Remove node 6 from Azure Pipelines
Remove node 6 from Azure Pipelines
