Skip to content

Commit 6c4a914

Browse files
authored
Create lint-md.yaml
1 parent 8473ac5 commit 6c4a914

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

.github/workflows/lint-md.yaml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Lint Markdown Files
2+
3+
on:
4+
push:
5+
branches:
6+
- develop
7+
pull_request:
8+
branches:
9+
- develop
10+
11+
jobs:
12+
lint-md:
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
# Step 1: Checkout the repository
17+
- name: Checkout code
18+
uses: actions/checkout@v3
19+
20+
# Step 2: Set up Node.js environment
21+
- name: Set up Node.js
22+
uses: actions/setup-node@v3
23+
with:
24+
node-version: '21'
25+
26+
# Step 3: Install dependencies
27+
- name: Install dependencies
28+
run: npm install
29+
30+
# Step 4: Run lint-md
31+
- name: Run lint-md
32+
run: npx lint-md .

0 commit comments

Comments
 (0)