Enhance Markdown functionality for documentation articles #83
Workflow file for this run
This file contains hidden or 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
| # Workflow for validating content structure and build integrity | |
| name: Validate site and content | |
| on: | |
| # Runs on pushes targeting the default branch | |
| push: | |
| branches: | |
| - main | |
| # Runs on pull requests targeting the default branch | |
| pull_request: | |
| branches: | |
| - main | |
| jobs: | |
| # YAML schema validation job | |
| yaml-schema-validation: | |
| name: Validate YAML files against schemas | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v5 | |
| - name: Set up Node.js | |
| uses: actions/setup-node@v5 | |
| with: | |
| node-version: 24 | |
| - name: Install dependencies | |
| run: | | |
| npm install yaml-ls-check | |
| - name: Validate YAML files | |
| run: | | |
| npx yaml-ls-check .\articles | |
| npx yaml-ls-check .\blogs | |
| npx yaml-ls-check .\reference | |
| # Build validation job | |
| build-validation: | |
| name: Validate Next.js build | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v5 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v5 | |
| with: | |
| node-version: 24 | |
| cache: npm | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Build Next.js site | |
| # Validate that the site builds successfully | |
| # | |
| # Use the built-in NPM script to build the site | |
| run: npm run build |