Skip to content

Commit

Permalink
fix: Add NodeTool to validation pipelines (#1555)
Browse files Browse the repository at this point in the history
#### 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

<!-- Are there any parts that you've intentionally left out-of-scope for
a later PR to handle? -->

<!-- Were there any alternative approaches you considered? What
tradeoffs did you consider? -->

#### Pull request checklist
<!-- If a checklist item is not applicable to this change, write "n/a"
in the checkbox -->
- [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: `<rootDir>/test-results/unit/coverage`
- [x] Ran precheckin (`yarn precheckin`)
  • Loading branch information
katydecorah authored Feb 22, 2023
1 parent edda134 commit cdb48c7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pipelines/ado-extension-validation-template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit cdb48c7

Please sign in to comment.