forked from InnerSourceCommons/InnerSourcePatterns
-
Notifications
You must be signed in to change notification settings - Fork 0
28 lines (26 loc) · 841 Bytes
/
lint-patterns.yml
File metadata and controls
28 lines (26 loc) · 841 Bytes
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
# from: https://github.com/marketplace/actions/markdown-linting-action
name: Pattern Syntax Validation
on:
push:
branches:
- "main"
pull_request:
paths:
- ".github/workflows/lint-patterns.yml"
- "lint/*"
- "patterns/2-structured/*.md"
- "patterns/2-structured/project-setup/*.md"
- "patterns/3-validated/*.md"
jobs:
validate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Problem Matcher for markdownlint-cli
uses: xt0rted/markdownlint-problem-matcher@v1
- name: Lint pattern files (markdown)
uses: avto-dev/markdown-lint@v1
with:
rules: './lint/pattern-template.js'
config: './lint/pattern-template.yml'
args: 'patterns/2-structured/*.md patterns/2-structured/project-setup/*.md patterns/3-validated/*.md'