adds vercel-status-tracker #4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Validate Markdown Tables | |
on: | |
pull_request: | |
branches: | |
- main # Run for PRs targeting the main branch | |
jobs: | |
validate-tables: | |
runs-on: ubuntu-latest | |
steps: | |
# Checkout the repository code | |
- name: Checkout Code | |
uses: actions/checkout@v3 | |
# Set up Node.js environment | |
- name: Set up Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: "16" | |
# Install markdownlint for validating Markdown syntax | |
- name: Install Markdownlint | |
run: npm install -g markdownlint-cli | |
# Validate all Markdown files in the repository | |
- name: Lint Markdown Files | |
run: markdownlint "**/*.md" | |
# Optional: Use a custom script to validate tables | |
- name: Validate Markdown Tables | |
run: | | |
npm install -g markdown-table-checker | |
find . -name "*.md" -exec markdown-table-checker {} \; | |
# Display a message if the checks fail | |
- name: Report Issues | |
if: failure() | |
run: echo "Broken Markdown tables detected. Please fix the issues listed above." |