mirror of
https://github.com/tree-sitter/parser-test-action.git
synced 2026-11-17 03:00:49 +00:00
Test action for tree-sitter parsers
| Filename | Latest commit message | Latest commit date |
|---|---|---|
Bumps the rust group with 1 update in the /rust directory: [actions-rust-lang/setup-rust-toolchain](https://github.com/actions-rust-lang/setup-rust-toolchain). Updates `actions-rust-lang/setup-rust-toolchain` from 1.17 to 2.0 - [Release notes](https://github.com/actions-rust-lang/setup-rust-toolchain/releases) - [Changelog](https://github.com/actions-rust-lang/setup-rust-toolchain/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions-rust-lang/setup-rust-toolchain/compare/v1.17...v2.0) --- updated-dependencies: - dependency-name: actions-rust-lang/setup-rust-toolchain dependency-version: '2.0' dependency-type: direct:production update-type: version-update:semver-major dependency-group: rust ... Signed-off-by: dependabot[bot] <support@github.com> |
||
| .github | ||
| go | ||
| java | ||
| node | ||
| python | ||
| rust | ||
| swift | ||
| zig | ||
| .editorconfig | ||
| action.yml | ||
| LICENSE | ||
| README.md | ||
Tree-sitter parser tests
Options
generate:
description: Verify the generated parser
default: true
abi-version:
description: The tree-sitter ABI version
default: "15"
test-parser:
description: Test the parser
default: true
test-parser-cmd:
description: Command that tests the parser
default: tree-sitter test
test-rust:
description: Test the Rust bindings
default: false
rust-version:
description: Rust version
default: "stable"
test-node:
description: Test the Node bindings
default: false
node-version:
description: Node.js version
default: "lts/*"
test-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.26"
test-swift:
description: Test the Swift bindings
default: false
swift-version:
description: Swift version
default: "6.1"
test-zig:
description: Test the Zig bindings
default: false
zig-version:
description: Zig version
default: "0.16.0"
test-java:
description: Test the Java bindings
default: "false"
java-version:
description: Java version
default: "25"
Example configuration
name: CI
on:
push:
branches: [master]
paths:
- grammar.js
- src/**
- bindings/**
- binding.gyp
pull_request:
paths:
- grammar.js
- src/**
- bindings/**
- binding.gyp
concurrency:
group: ${{github.workflow}}-${{github.ref}}
cancel-in-progress: true
jobs:
test:
name: Run tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: tree-sitter/setup-action/cli@v2
- uses: tree-sitter/parser-test-action@v3
with:
test-rust: true