Skip to content

[docs] Created a docs directory and added Markdown linting #2

[docs] Created a docs directory and added Markdown linting

[docs] Created a docs directory and added Markdown linting #2

Workflow file for this run

name: Markdown Lint
on:
push:
branches: [main]
paths:
- '**/*.md'
- '.github/workflows/markdown-lint.yml'
pull_request:
branches: [main]
paths:
- '**/*.md'
- '.github/workflows/markdown-lint.yml'
jobs:
lint-markdown:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Cache Node.js modules
uses: actions/cache@v3
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Run markdownlint on Markdown files
run: npm run lint:markdown