-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
QA: add yamllint workflow and config
... to check the code style of the re-usable workflows.
- Loading branch information
Showing
2 changed files
with
35 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
name: Yamllint | ||
|
||
on: | ||
# Run on all pushes and on all pull requests. | ||
push: | ||
pull_request: | ||
# Allow manually triggering the workflow. | ||
workflow_dispatch: | ||
|
||
jobs: | ||
yamllint: | ||
uses: PHPCSStandards/.github/.github/workflows/reusable-yamllint.yml@main | ||
with: | ||
strict: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# Details on the default config: | ||
# https://yamllint.readthedocs.io/en/stable/configuration.html#default-configuration | ||
extends: default | ||
|
||
yaml-files: | ||
- '*.yaml' | ||
- '*.yml' | ||
|
||
# Rule documentation: https://yamllint.readthedocs.io/en/stable/rules.html | ||
rules: | ||
colons: | ||
max-spaces-after: -1 # Disabled to allow aligning of values. | ||
comments: | ||
min-spaces-from-content: 1 | ||
comments-indentation: {} | ||
document-start: | ||
present: false | ||
line-length: | ||
max: 145 | ||
truthy: | ||
allowed-values: ["true", "false", "on", "off"] |