Skip to content

Commit 7fd8d3a

Browse files
committed
prepare CI for Intent lists YAML data
1 parent 38f50f8 commit 7fd8d3a

File tree

2 files changed

+58
-0
lines changed

2 files changed

+58
-0
lines changed
+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Validate-YAML-lists
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
8+
9+
jobs:
10+
validate-yaml-core-concept-list:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v2
14+
- name: Validate YAML intent lists
15+
run: yamllint -c _data/_config_yamllint.yml _data/core.yml
16+
validate-yaml-open-concept-list:
17+
runs-on: ubuntu-latest
18+
steps:
19+
- uses: actions/checkout@v2
20+
- name: Validate YAML intent lists
21+
run: yamllint -c _data/_config_yamllint.yml _data/open.yml
22+
validate-yaml-properties-list:
23+
runs-on: ubuntu-latest
24+
steps:
25+
- uses: actions/checkout@v2
26+
- name: Validate YAML intent lists
27+
run: yamllint -c _data/_config_yamllint.yml _data/core-properties.yml

_data/_config_yamllint.yml

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
---
2+
3+
extends: default
4+
5+
rules:
6+
braces:
7+
level: warning
8+
max-spaces-inside: 1
9+
brackets:
10+
level: warning
11+
max-spaces-inside: 1
12+
colons:
13+
level: warning
14+
commas:
15+
level: warning
16+
comments: disable
17+
comments-indentation: disable
18+
document-start: disable
19+
empty-lines:
20+
level: warning
21+
hyphens:
22+
level: warning
23+
indentation:
24+
level: warning
25+
indent-sequences: consistent
26+
line-length:
27+
max: 240
28+
level: warning
29+
allow-non-breakable-inline-mappings: true
30+
truthy: disable
31+
trailing-spaces: disable

0 commit comments

Comments
 (0)