fix(parser): improve description list parsing and xref handling #6
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: CI | |
| on: | |
| push: | |
| branches: [ main, master ] | |
| pull_request: | |
| branches: [ main, master ] | |
| jobs: | |
| build-and-test: | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ubuntu-latest, macos-latest, windows-latest] | |
| node: [20] | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: ${{ matrix.node }} | |
| - name: Setup pnpm | |
| uses: pnpm/action-setup@v4 | |
| with: | |
| version: 9 | |
| - name: Install deps | |
| run: pnpm install --no-frozen-lockfile | |
| - name: Generate parser | |
| run: npx tree-sitter generate | |
| - name: Build parser | |
| run: npx tree-sitter build | |
| - name: Run passing corpus tests (targeted) | |
| shell: bash | |
| run: | | |
| set -e | |
| npx tree-sitter test --file-name 01_sections.txt | |
| npx tree-sitter test --file-name 03_attributes.txt | |
| npx tree-sitter test --file-name 07_ordered_lists.txt | |
| npx tree-sitter test --file-name 08_description_lists.txt | |
| npx tree-sitter test --file-name 09_callout_lists.txt | |
| npx tree-sitter test --file-name 10_mixed_lists.txt |