parameters:
  projectdirectory: ''

steps:
- task: NodeTool@0
  displayName: Use Node 8.x
  inputs:
    versionSpec: 8.x

- task: geeklearningio.gl-vsts-tasks-yarn.yarn-installer-task.YarnInstaller@2
  displayName: Use Yarn 1.x

- task: geeklearningio.gl-vsts-tasks-yarn.yarn-task.Yarn@2
  displayName: Yarn install
  inputs:
    ProjectDirectory: src/nerdbank-streams

- task: geeklearningio.gl-vsts-tasks-yarn.yarn-task.Yarn@2
  displayName: Yarn build
  inputs:
    ProjectDirectory: src/nerdbank-streams
    Arguments: build

- task: geeklearningio.gl-vsts-tasks-yarn.yarn-task.Yarn@2
  displayName: Yarn test
  inputs:
    ProjectDirectory: src/nerdbank-streams
    Arguments: test

parameters:
  projectdirectory: ''

steps:
- task: NodeTool@0
  displayName: Use Node 8.x
  inputs:
    versionSpec: 10.x

- task: geeklearningio.gl-vsts-tasks-yarn.yarn-installer-task.YarnInstaller@2
  displayName: Use Yarn 1.x

- task: geeklearningio.gl-vsts-tasks-yarn.yarn-task.Yarn@2
  displayName: Yarn install
  inputs:
    ProjectDirectory: src/nerdbank-streams

- task: geeklearningio.gl-vsts-tasks-yarn.yarn-task.Yarn@2
  displayName: Yarn build
  inputs:
    ProjectDirectory: src/nerdbank-streams
    Arguments: build

- task: geeklearningio.gl-vsts-tasks-yarn.yarn-task.Yarn@2
  displayName: Yarn test
  inputs:
    ProjectDirectory: src/nerdbank-streams
    Arguments: test

Update to Node.js 10 during build
Update to Node.js 10 during build
