Skip to content

Commit

Permalink
ci: add actions
Browse files Browse the repository at this point in the history
  • Loading branch information
peter-jerry-ye committed Mar 18, 2024
1 parent a41bb34 commit a7ed714
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/mdlint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Check Markdown
on:
pull_request

jobs:
check-markdown:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '21'

- name: Install mdlint
run: npm install -g @moonbit/markdown-linter

- name: Install moonBit
run: /bin/bash -c "$(curl -fsSL https://cli.moonbitlang.com/ubuntu_x86_64_moon_setup.sh)"

- name: Run mdlint
run: mdlint course*/*.md
env:
PATH: /home/runner/.moon/bin:$PATH

0 comments on commit a7ed714

Please sign in to comment.