Test action for tree-sitter parsers
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
dependabot[bot] d5403e07ec chore(rust): bump actions-rust-lang/setup-rust-toolchain
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>
2026-11-13 09:53:45 +02:00
.github ci(dependabot): add java & zig actions 2026-11-13 09:48:02 +02:00
go chore: update versions 2026-11-13 09:52:18 +02:00
java chore: update versions 2026-11-13 09:52:18 +02:00
node chore(node): bump actions/setup-node in /node in the rust group 2026-11-13 09:42:55 +02:00
python chore(python): bump actions/setup-python 2026-11-13 09:44:12 +02:00
rust chore(rust): bump actions-rust-lang/setup-rust-toolchain 2026-11-13 09:53:45 +02:00
swift feat(swift): switch to SwiftyLab/setup-swift 2025-08-10 23:38:13 +03:00
zig refactor(zig): switch to vercel-labs/setup-zig 2026-11-13 09:52:31 +02:00
.editorconfig feat: initial commit 2024-02-25 12:31:56 +02:00
action.yml chore: update versions 2026-11-13 09:52:18 +02:00
LICENSE feat: initial commit 2024-02-25 12:31:56 +02:00
README.md chore: update versions 2026-11-13 09:52:18 +02:00

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