Skip to content

Commit

Permalink
feature: introduce markdown linting for README.md
Browse files Browse the repository at this point in the history
Signed-off-by: Maximilian Bösing <[email protected]>
  • Loading branch information
boesing committed Jul 7, 2023
1 parent f736154 commit e41599a
Show file tree
Hide file tree
Showing 8 changed files with 34 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/tools.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,13 @@ export default function createTools(config: Config): Array<Tool> {
filesToCheck : [ 'mkdocs.yml' ],
toolType : ToolType.LINTER,
},
{
executionType : ToolExecutionType.STATIC,
name : 'README Linting',
command : 'markdownlint README.md',
filesToCheck : [ 'README.md' ],
toolType : ToolType.LINTER,
},
{
executionType : ToolExecutionType.MATRIX,
name : 'PHPUnit',
Expand Down
3 changes: 3 additions & 0 deletions tests/doc-linting-readme-due-diff/.laminas-ci.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"stablePHP": "7.4"
}
Empty file.
10 changes: 10 additions & 0 deletions tests/doc-linting-readme-due-diff/matrix.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"include": [
{
"name": "Documentation Linting [7.4, latest]",
"job": "{\"command\":\"markdownlint README.md\",\"php\":\"7.4\",\"extensions\":[],\"ini\":[],\"dependencies\":\"latest\",\"ignore_platform_reqs_8\":false,\"ignore_php_platform_requirement\":false,\"additional_composer_arguments\":[],\"before_script\":[]}",
"operatingSystem": "ubuntu-latest",
"action": "laminas/laminas-continuous-integration-action@v1"
}
]
}
3 changes: 3 additions & 0 deletions tests/doc-linting-readme/.laminas-ci.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"stablePHP": "7.4"
}
Empty file.
1 change: 1 addition & 0 deletions tests/doc-linting-readme/diff
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
README.md
10 changes: 10 additions & 0 deletions tests/doc-linting-readme/matrix.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"include": [
{
"name": "Documentation Linting [7.4, latest]",
"job": "{\"command\":\"markdownlint README.md\",\"php\":\"7.4\",\"extensions\":[],\"ini\":[],\"dependencies\":\"latest\",\"ignore_platform_reqs_8\":false,\"ignore_php_platform_requirement\":false,\"additional_composer_arguments\":[],\"before_script\":[]}",
"operatingSystem": "ubuntu-latest",
"action": "laminas/laminas-continuous-integration-action@v1"
}
]
}

0 comments on commit e41599a

Please sign in to comment.