-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add CI/CD workflow to validate YAML files (#40)
* Add CI/CD workflow to validate YAML files Signed-off-by: Dave Thaler <[email protected]> * Update YAML files to resolve issues found by yamllint Signed-off-by: Dave Thaler <[email protected]> * Use directories not files Signed-off-by: Dave Thaler <[email protected]> --------- Signed-off-by: Dave Thaler <[email protected]> Co-authored-by: Dave Thaler <[email protected]>
- Loading branch information
Showing
3 changed files
with
73 additions
and
39 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,26 @@ | ||
# For documentation on the github environment, see | ||
# https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners | ||
# | ||
# For documentation on the syntax of this file, see | ||
# https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions | ||
name: Validate-YAML | ||
|
||
on: | ||
push: | ||
branches: [main, next-minor, next-patch] | ||
pull_request: | ||
branches: [main, next-minor, next-patch] | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
validate-yaml: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout GEDCOM.io | ||
uses: actions/checkout@v4 | ||
|
||
- name: Validate YAML | ||
run: yamllint . .github .github/workflows calendar/standard data-type/standard enumeration/standard enumeration-set/standard month/standard structure/extension structure/standard uri/exid-types |
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,8 @@ | ||
# Configuration file for yamllint. For documentation, see | ||
# https://yamllint.readthedocs.io/en/stable/configuration.html | ||
|
||
extends: default | ||
|
||
rules: | ||
line-length: disable | ||
trailing-spaces: disable |