Skip to content

Commit a9591c7

Browse files
author
Gonzalo Diaz
committed
[CONFIG] Github Actions: markdown-lint flow added.
1 parent 0987a45 commit a9591c7

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

.github/workflows/markdown-lint.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Markdown Lint
2+
3+
on:
4+
push:
5+
branches: [ main, develop, feature/* ]
6+
pull_request:
7+
branches: [ main ]
8+
9+
permissions: read-all
10+
11+
jobs:
12+
build:
13+
14+
runs-on: ubuntu-latest
15+
16+
strategy:
17+
matrix:
18+
os: [ubuntu-latest]
19+
node-version: [20.x]
20+
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
21+
22+
steps:
23+
- name: Checkout repository
24+
uses: actions/checkout@v4
25+
26+
- name: Set up Node.js ${{ matrix.node-version }}
27+
uses: actions/setup-node@v4
28+
with:
29+
node-version: ${{ matrix.node-version }}
30+
31+
- name: Install dependencies
32+
run: npm install -g markdownlint-cli
33+
34+
- name: Lint
35+
run: markdownlint '**/*.md' --ignore node_modules && echo '✔ Your code looks good.'
36+

0 commit comments

Comments
 (0)