File tree Expand file tree Collapse file tree 3 files changed +130
-0
lines changed
Expand file tree Collapse file tree 3 files changed +130
-0
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ name : JSON Quality Assistance
3+
4+ on :
5+ # This event occurs when there is activity on a pull request. The workflow
6+ # will be run against the commits, after merge to the target branch (main).
7+ pull_request :
8+ branches : [ main ]
9+ paths :
10+ - ' **.json'
11+ - ' .github/workflows/json.yml'
12+ types : [ opened, reopened, synchronize ]
13+ # This event occurs when there is a push to the repository.
14+ push :
15+ paths :
16+ - ' **.json'
17+ - ' .github/workflows/json.yml'
18+ # Allow manually triggering the workflow.
19+ workflow_dispatch :
20+
21+ # Cancels all previous workflow runs for the same branch that have not yet completed.
22+ concurrency :
23+ group : ${{ github.workflow }}-${{ github.ref }}
24+ cancel-in-progress : true
25+
26+ permissions :
27+ # Needed to allow the "concurrency" section to cancel a workflow run.
28+ actions : write
29+
30+ jobs :
31+ # 01.preflight.json.lint-syntax.yml
32+ lint-json-syntax :
33+ name : JSON Syntax Linting
34+ runs-on : ubuntu-24.04
35+ steps :
36+ - uses : actions/checkout@v4
37+ - uses : docker://pipelinecomponents/jsonlint
38+ with :
39+ args : >-
40+ find .
41+ -not -path '*/.git/*'
42+ -not -path '*/node_modules/*'
43+ -not -path '*/vendor/*'
44+ -name '*.json'
45+ -type f
46+ -exec jsonlint --quiet {} ;
Original file line number Diff line number Diff line change 1+ ---
2+ name : Markdown Quality Assistance
3+
4+ on :
5+ # This event occurs when there is activity on a pull request. The workflow
6+ # will be run against the commits, after merge to the target branch (main).
7+ pull_request :
8+ branches : [ main ]
9+ paths :
10+ - ' **.md'
11+ - ' .github/workflows/markdown.yml'
12+ types : [ opened, reopened, synchronize ]
13+ # This event occurs when there is a push to the repository.
14+ push :
15+ paths :
16+ - ' **.md'
17+ - ' .github/workflows/markdown.yml'
18+ # Allow manually triggering the workflow.
19+ workflow_dispatch :
20+
21+ # Cancels all previous workflow runs for the same branch that have not yet completed.
22+ concurrency :
23+ group : ${{ github.workflow }}-${{ github.ref }}
24+ cancel-in-progress : true
25+
26+ permissions :
27+ # Needed to allow the "concurrency" section to cancel a workflow run.
28+ actions : write
29+
30+ jobs :
31+ # 01.quality.markdown.lint-syntax.yml
32+ lint-markdown-syntax :
33+ name : Markdown Linting
34+ runs-on : ubuntu-24.04
35+ steps :
36+ - uses : actions/checkout@v4
37+ - uses : docker://pipelinecomponents/remark-lint
38+ with :
39+ args : >-
40+ remark
41+ --rc-path=.config/.remarkrc
42+ --ignore-pattern='*/vendor/*'
Original file line number Diff line number Diff line change 1+ ---
2+ name : YAML Quality Assistance
3+
4+ on :
5+ # This event occurs when there is activity on a pull request. The workflow
6+ # will be run against the commits, after merge to the target branch (main).
7+ pull_request :
8+ branches : [ main ]
9+ paths :
10+ - ' **.yml'
11+ - ' **.yaml'
12+ types : [ opened, reopened, synchronize ]
13+ # This event occurs when there is a push to the repository.
14+ push :
15+ paths :
16+ - ' **.yml'
17+ - ' **.yaml'
18+ # Allow manually triggering the workflow.
19+ workflow_dispatch :
20+
21+ # Cancels all previous workflow runs for the same branch that have not yet completed.
22+ concurrency :
23+ group : ${{ github.workflow }}-${{ github.ref }}
24+ cancel-in-progress : true
25+
26+ permissions :
27+ # Needed to allow the "concurrency" section to cancel a workflow run.
28+ actions : write
29+
30+ jobs :
31+ # 01.preflight.yaml.lint.yml
32+ lint-yaml :
33+ name : YAML Linting
34+ runs-on : ubuntu-24.04
35+ steps :
36+ - uses : actions/checkout@v4
37+ - uses : docker://pipelinecomponents/yamllint
38+ with :
39+ args : >-
40+ yamllint
41+ --config-file=.config/.yamllint
42+ .
You can’t perform that action at this time.
0 commit comments