Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tree-sitter/parser-test-action
Test action for tree-sitter parsers
https://github.com/tree-sitter/parser-test-action
actions tree-sitter
Last synced: 3 months ago
JSON representation
Test action for tree-sitter parsers
- Host: GitHub
- URL: https://github.com/tree-sitter/parser-test-action
- Owner: tree-sitter
- License: mit
- Created: 2024-02-24T09:53:31.000Z (11 months ago)
- Default Branch: master
- Last Pushed: 2024-09-11T13:17:42.000Z (4 months ago)
- Last Synced: 2024-09-27T10:22:14.718Z (4 months ago)
- Topics: actions, tree-sitter
- Homepage:
- Size: 10.7 KB
- Stars: 2
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Tree-sitter parser tests
## Options
```yaml
generate:
description: Verify the generated parser
default: falsetest-parser:
description: Test the parser
default: true
test-parser-cmd:
description: Command that tests the parser
default: tree-sitter testtest-rust:
description: Test the Rust bindings
default: false
rust-version:
description: Rust version
default: stabletest-node:
description: Test the Node bindings
default: false
node-version:
description: Node.js version
default: latesttest-python:
description: Test the Python bindings
default: false
python-version:
description: Python version
default: "3.11"test-go:
description: Test the Go bindings
default: false
go-version:
description: Go version
default: "1.23"test-swift:
description: Test the Swift bindings
default: false
swift-version:
description: Swift version
default: "5.10"
```## Example configuration
```yaml
name: CIon:
push:
branches: [master]
paths:
- grammar.js
- src/**
- bindings/**
- binding.gyp
pull_request:
paths:
- grammar.js
- src/**
- bindings/**
- binding.gypconcurrency:
group: ${{github.workflow}}-${{github.ref}}
cancel-in-progress: truejobs:
test:
name: Run tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: tree-sitter/setup-action/cli@v1
- uses: tree-sitter/parser-test-action@v2
with:
test-rust: true
```