Skip to content

Add GitHub Actions workflows for quality checks #1

Add GitHub Actions workflows for quality checks

Add GitHub Actions workflows for quality checks #1

Workflow file for this run

name: Markdown Linting
on:
pull_request:
paths:
- '**.md'
- '.markdownlint.yml'
- '.github/workflows/lint.yml'
push:
branches:
- main
paths:
- '**.md'
- '.markdownlint.yml'
- '.github/workflows/lint.yml'
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
- name: Install markdownlint-cli2
run: npm install -g markdownlint-cli2
- name: Run markdownlint
run: markdownlint-cli2 "**/*.md" "#node_modules"
- name: Check for markdown issues
if: failure()
run: |
echo "::error::Markdown linting failed. Please fix the issues above before merging."
exit 1