cspell issues in cpp branch , needs updated node, and cspell and npx need to be installed for cspell to run (#4086)

Co-authored-by: George Arama <50641385+gearama@users.noreply.github.com>
This commit is contained in:
Azure SDK Bot 2022-11-02 18:03:12 -04:00 committed by GitHub
parent f4bea88a51
commit 13100c5985
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 3 deletions

View File

@ -18,8 +18,8 @@ steps:
- task: NodeTool@0
condition: and(succeededOrFailed(), ne(variables['Skip.SpellCheck'],'true'))
inputs:
versionSpec: 16.x
displayName: Use Node.js 16.x
versionSpec: 18.x
displayName: Use Node.js 18.x
- task: PowerShell@2
displayName: Check spelling (cspell)

View File

@ -167,10 +167,12 @@ $originalLocation = Get-Location
try {
Set-Location $PackageInstallCache
npm install npx | Out-Null
npm install cspell | Out-Null
npm install | Out-Null
# Use the mutated configuration file when calling cspell
$command = "npx --no-install cspell $JobType --config $CSpellConfigPath --no-must-find-files --root $SpellCheckRoot --relative"
$command = "npx cspell $JobType --config $CSpellConfigPath --no-must-find-files --root $SpellCheckRoot --relative"
Write-Host $command
$cspellOutput = npx `
--no-install `