https://github.com/tree-sitter/parse-action
File parsing action for tree-sitter parsers
https://github.com/tree-sitter/parse-action
actions tree-sitter
Last synced: 12 months ago
JSON representation
File parsing action for tree-sitter parsers
- Host: GitHub
- URL: https://github.com/tree-sitter/parse-action
- Owner: tree-sitter
- License: mit
- Created: 2024-02-24T09:51:58.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2025-01-21T15:25:22.000Z (over 1 year ago)
- Last Synced: 2025-06-27T05:10:24.910Z (12 months ago)
- Topics: actions, tree-sitter
- Language: JavaScript
- Homepage:
- Size: 196 KB
- Stars: 4
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Tree-sitter parse files
## Options
```yaml
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
```yaml
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@v4
- run: npm install
- uses: tree-sitter/parse-action@v3
id: examples
continue-on-error: true
with:
files: |-
examples/**
- uses: actions/upload-artifact@v4
if: steps.examples.outputs.failures != ''
with:
name: failures
path: ${{steps.examples.outputs.failures}}
```