-
Notifications
You must be signed in to change notification settings - Fork 472
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: add validation with yamllint (#951)
* ci: add validation with yamllint * use makefile * disable warnings for comments-indentation * fix configuration for comments-indentation
- Loading branch information
Showing
22 changed files
with
450 additions
and
423 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
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,17 @@ | ||
name: Validate YAML | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
paths: | ||
- "**/*.ya?ml" | ||
|
||
jobs: | ||
validate-yaml: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Validate YAML file | ||
run: make lint-yaml |
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 |
---|---|---|
@@ -1,8 +1,27 @@ | ||
--- | ||
extends: default | ||
|
||
ignore: | ||
# uses go templates (these are invalid yaml files) | ||
- integration-tests/goss/goss-service.yaml | ||
- integration-tests/goss/goss-shared.yaml | ||
- docs/goss.yaml | ||
|
||
rules: | ||
braces: | ||
min-spaces-inside: 0 | ||
max-spaces-inside: 1 # required for schema.yaml | ||
brackets: | ||
min-spaces-inside: 0 | ||
max-spaces-inside: 1 # required for schema.yaml | ||
comments-indentation: disable | ||
indentation: | ||
spaces: consistent | ||
indent-sequences: consistent | ||
line-length: disable | ||
document-start: disable | ||
truthy: | ||
allowed-values: | ||
- on | ||
- "on" # required for github workflows | ||
- "false" | ||
- "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
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
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 |
---|---|---|
@@ -1,2 +1,2 @@ | ||
# This is a sample file referenced by goss.yaml | ||
# Used for render test and Json schema validation. | ||
# Used for render test and Json schema validation. |
Oops, something went wrong.