File parsing action for tree-sitter parsers
  • JavaScript 100%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-11-13 09:40:06 +02:00
dist chore!: bump node and dependencies 2026-11-13 09:40:06 +02:00
src fix: include the platform in the title 2024-03-21 17:55:42 +02:00
.editorconfig Initial commit 2024-02-21 21:07:34 +02:00
.gitattributes chore: add gitattributes file 2025-01-21 17:25:12 +02:00
.gitignore Initial commit 2024-02-21 21:07:34 +02:00
action.yml chore!: bump node and dependencies 2026-11-13 09:40:06 +02:00
LICENSE refactor: set cwd in exec instead of chdir 2024-02-25 12:33:25 +02:00
package-lock.json chore!: bump node and dependencies 2026-11-13 09:40:06 +02:00
package.json chore!: bump node and dependencies 2026-11-13 09:40:06 +02:00
README.md chore!: bump node and dependencies 2026-11-13 09:40:06 +02:00

Tree-sitter parse files

Options

files:
  description: Glob patterns of files to be parsed
files-list:
  description: File with glob patterns of files to be parsed
invalid-files:
  description: Glob patterns of files that are invalid
invalid-files-list:
  description: File with glob patterns of files that are invalid

Note

You must supply at least one of files and files-list.

Example configuration

name: Parse examples

on:
  push:
    branches: [master]
    paths:
      - grammar.js
  pull_request:
    paths:
      - grammar.js

jobs:
  examples:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v7
      - run: npm install
      - uses: tree-sitter/parse-action@v5
        id: examples
        continue-on-error: true
        with:
          files: |-
            examples/**
      - uses: actions/upload-artifact@v7
        if: steps.examples.outputs.failures != ''
        with:
          name: failures
          path: ${{steps.examples.outputs.failures}}