Minor perf improvements, parsing refactor + bug fixes #1
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
| name: Markdown & JSON Lint/Format | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| permissions: | |
| contents: read | |
| jobs: | |
| validate: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v5 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v5 | |
| with: | |
| node-version: '20' | |
| cache: 'npm' | |
| cache-dependency-path: package.json | |
| - name: Install dependencies | |
| run: | | |
| if [ -f package-lock.json ]; then | |
| npm ci | |
| else | |
| npm i --no-audit --no-fund | |
| fi | |
| - name: Prettier check (Markdown) | |
| run: npm run format:md:check | |
| - name: Prettier check (JSON / asmdef / asmref) | |
| run: npm run format:json:check | |
| - name: Markdown lint | |
| run: npm run lint:markdown | |
| - name: Enforce EOL (CRLF) and No BOM | |
| shell: pwsh | |
| run: ./scripts/check-eol.ps1 -VerboseOutput |