Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 2 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 (11 months ago)
- Default Branch: master
- Last Pushed: 2024-03-21T15:56:22.000Z (10 months ago)
- Last Synced: 2024-10-08T10:57:19.577Z (3 months ago)
- Topics: actions, tree-sitter
- Language: JavaScript
- Homepage:
- Size: 195 KB
- Stars: 2
- Watchers: 3
- Forks: 1
- 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 exampleson:
push:
branches: [master]
paths:
- grammar.js
pull_request:
paths:
- grammar.jsjobs:
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}}
```