-
Notifications
You must be signed in to change notification settings - Fork 183
29 lines (27 loc) · 1021 Bytes
/
lint-patterns.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# from: https://github.com/marketplace/actions/markdown-linting-action
# To test this locally, switch to the root of the repo and run:
# markdownlint -r config/lint/pattern-template.js -c config/lint/pattern-template.yml patterns/2-structured/*.md patterns/3-validated/*.md
name: Pattern Syntax Validation
on:
push:
branches:
- "main"
pull_request:
paths:
- ".github/workflows/lint-patterns.yml"
- ".github/lint-pattern-syntax/*"
- "patterns/2-structured/*.md"
- "patterns/3-validated/*.md"
jobs:
validate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Problem Matcher for markdownlint-cli
uses: xt0rted/markdownlint-problem-matcher@v3
- name: Lint pattern files (markdown)
uses: avto-dev/markdown-lint@v1
with:
rules: './.github/lint-pattern-syntax/pattern-template.js'
config: './.github/lint-pattern-syntax/pattern-template.yml'
args: 'patterns/2-structured/*.md patterns/3-validated/*.md'