From cdb48c75dd22b726c6357b2dc5bdf4e0b0e98558 Mon Sep 17 00:00:00 2001 From: Katy DeCorah Date: Wed, 22 Feb 2023 09:37:17 -0800 Subject: [PATCH] fix: Add NodeTool to validation pipelines (#1555) #### Details This pull request adds NodeTool to make sure the validation pipeline use Node 16.x. I noticed the canary validation pipelines started failing yesterday with a Node version error; ubuntu-latest appears to be shipping with Node v18. ##### Motivation Fix validation pipelines. ##### Context #### Pull request checklist - [n/a] Addresses an existing issue: Fixes #0000 - [x] Added relevant unit test for your changes. (`yarn test`) - [x] Verified code coverage for the changes made. Check coverage report at: `/test-results/unit/coverage` - [x] Ran precheckin (`yarn precheckin`) --- pipelines/ado-extension-validation-template.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pipelines/ado-extension-validation-template.yaml b/pipelines/ado-extension-validation-template.yaml index 0763be721..52f26775a 100644 --- a/pipelines/ado-extension-validation-template.yaml +++ b/pipelines/ado-extension-validation-template.yaml @@ -16,6 +16,10 @@ variables: - group: 'ado-auth-example-secrets' steps: + - task: NodeTool@0 + inputs: + versionSpec: '16.x' + displayName: Use Node 16.x # reused by all "url" cases - script: npx serve "$(System.DefaultWorkingDirectory)/dev/website-root" -l 5858 & displayName: 'Start /dev/website-root test server at http://localhost:5858'