Skip to content

Commit

Permalink
NEW Add documentation linting option (#112)
Browse files Browse the repository at this point in the history
  • Loading branch information
GuySartorelli authored Apr 4, 2024
1 parent 59f612a commit 7b5e31a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ on:
js:
type: boolean
default: true
doclinting:
type: boolean
default: true
preserve_vendor_tests:
type: boolean
default: false
Expand Down Expand Up @@ -104,6 +107,7 @@ jobs:
phplinting: ${{ inputs.phplinting }}
phpunit: ${{ inputs.phpunit }}
js: ${{ inputs.js }}
doclinting: ${{ inputs.doclinting }}

# For each job in the matrix, setup an environment and run the tests
tests:
Expand Down Expand Up @@ -803,6 +807,7 @@ jobs:
endtoend_suite: ${{ matrix.endtoend_suite }}
endtoend_config: ${{ matrix.endtoend_config }}
js: ${{ matrix.js }}
doclinting: ${{ matrix.doclinting }}

- name: Output latest SHA
id: output-sha
Expand Down
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,10 @@ Create a smaller matrix with only the lowest supported PHP and MySQL versions in
Dynamically generate a matrix using feature detection. If disabled, jobs must be defined using the extra_jobs input. Default is true, disable with:
`dynamic_matrix: false`

##### Documentation linting
Runs linting against documentation using [silverstripe/documentation-lint](https://github.com/silverstripe/documentation-lint/) if the `.doclintrc` config file is available. Default is true, disable with:
`doclinting: false`

##### PHPUnit tests
Runs PHPunit if the `phpunit.xml` or `phpunit.xml.dist` config file is available. Default is true, disable PHPunit tests with:
`phpunit: false`
Expand Down

0 comments on commit 7b5e31a

Please sign in to comment.