diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 2a4b119a..efeb5f0f 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -469,10 +469,10 @@ jobs: displayName: 'Install .NET 6' - task: NodeTool@0 inputs: - versionSpec: '14.x' - displayName: 'Install NodeJs 14.x' + versionSpec: '20.x' + displayName: 'Install NodeJs 20.x' - bash: | - npm install -g markdownlint-cli + npm install -g markdownlint-cli@0.37.0 displayName: 'Install required tools' - download: current artifact: NuGet Package diff --git a/tests/script-runner/build.cake b/tests/script-runner/build.cake index a05fffc5..671d76b5 100644 --- a/tests/script-runner/build.cake +++ b/tests/script-runner/build.cake @@ -104,10 +104,19 @@ Task("Lint-Documentation") var settings = MarkdownlintNodeJsRunnerSettings.ForDirectory( data.IssuesData.BuildRootDirectory.Combine("docs")); - settings.OutputFile = data.MarkdownlintCliLogFilePath; + settings.OutputFile = MakeAbsolute(data.MarkdownlintCliLogFilePath); settings.ThrowOnIssue = false; RunMarkdownlintNodeJs(settings); + if (!FileExists(data.MarkdownlintCliLogFilePath)) + { + Warning("File {0} does not exist", data.MarkdownlintCliLogFilePath.FullPath); + } + else + { + Information("File {0} does exist", data.MarkdownlintCliLogFilePath.FullPath); + } + // Pass path to markdownlint-cli log file to Cake.Issues.Recipe IssuesParameters.InputFiles.AddMarkdownlintCliLogFile(data.MarkdownlintCliLogFilePath); });