Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
pascalberger committed Mar 8, 2024
1 parent d0f4efc commit 0c6a63a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
2 changes: 1 addition & 1 deletion azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -472,7 +472,7 @@ jobs:
versionSpec: '14.x'
displayName: 'Install NodeJs 14.x'
- bash: |
npm install -g markdownlint-cli
npm install -g markdownlint-cli@0.37.0
displayName: 'Install required tools'
- download: current
artifact: NuGet Package
Expand Down
11 changes: 10 additions & 1 deletion tests/script-runner/build.cake
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});
Expand Down

0 comments on commit 0c6a63a

Please sign in to comment.