Skip to content

Commit 68e3a10

Browse files
committed
Validate yaml schemas
1 parent 4b46635 commit 68e3a10

File tree

3 files changed

+20
-2
lines changed

3 files changed

+20
-2
lines changed

.config/.v8rrc.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
customCatalog:
2+
schemas:
3+
- name: Example Workflow
4+
fileMatch: ["example_workflows/*.yaml"]
5+
location: https://json.schemastore.org/github-workflow.json
6+
7+
- name: Markdown Lint
8+
fileMatch: ["changelog.markdownlint.yaml"]
9+
location: "https://raw.githubusercontent.com/DavidAnson/markdownlint/main/schema/markdownlint-config-schema.json"
10+
11+
- name: GitHub Issue Template configuration
12+
fileMatch: [".github/ISSUE_TEMPLATE/config.yml"]
13+
location: "https://json.schemastore.org/github-issue-config.json"
14+
15+
patterns: ['**/*.yaml', '**/*.yml']
File renamed without changes.

.github/workflows/test.yaml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,16 +132,19 @@ jobs:
132132
dockerfile: ./image/Dockerfile
133133

134134
- name: Lint Dockerfile-base
135+
135136
uses: hadolint/hadolint-action@54c9adbab1582c2ef04b2016b760714a4bfde3cf # v3.1.0
136137
with:
137138
dockerfile: ./image/Dockerfile-base
138139

139140
- name: Run ShellCheck
140141
run: |
141142
cd image/entrypoints
142-
shellcheck ../actions.sh ../workflow_commands.sh *.sh --enable add-default-case,avoid-nullary-conditional,require-double-brackets,deprecate-which
143+
shellcheck ../actions.sh ../workflow_commands.sh ./*.sh --enable add-default-case,avoid-nullary-conditional,require-double-brackets,deprecate-which
143144
144145
- name: Lint YAML files
145146
run: |
146147
pip install yamllint
147-
yamllint -c .config/yamllint.yaml .
148+
yamllint -c .config/.yamllint.yaml .
149+
150+
V8R_CONFIG_FILE=.config/.v8rrc.yaml npx v8r --ignore-errors

0 commit comments

Comments
 (0)