Skip to content

Commit a7ed714

Browse files
ci: add actions
1 parent a41bb34 commit a7ed714

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

.github/workflows/mdlint.yaml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Check Markdown
2+
on:
3+
pull_request
4+
5+
jobs:
6+
check-markdown:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- name: Checkout code
10+
uses: actions/checkout@v4
11+
12+
- name: Setup Node.js
13+
uses: actions/setup-node@v4
14+
with:
15+
node-version: '21'
16+
17+
- name: Install mdlint
18+
run: npm install -g @moonbit/markdown-linter
19+
20+
- name: Install moonBit
21+
run: /bin/bash -c "$(curl -fsSL https://cli.moonbitlang.com/ubuntu_x86_64_moon_setup.sh)"
22+
23+
- name: Run mdlint
24+
run: mdlint course*/*.md
25+
env:
26+
PATH: /home/runner/.moon/bin:$PATH

0 commit comments

Comments
 (0)