Skip to content

Setup action for the tree-sitter library & CLI

License

Notifications You must be signed in to change notification settings

tree-sitter/setup-action

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tree-sitter library & CLI setup

Options

install-cli:
  description: Install the CLI
  default: true
install-lib:
  description: Install the library
  default: true
tree-sitter-ref:
  description: A tree-sitter commit, tag, or branch
  default: latest
rust-toolchain:
  description: Rust toolchain
  default: stable

Example configuration

name: Generate

on:
  pull_request:

jobs:
  generate:
    name: Generate parser
    runs-on: ubuntu-latest
    steps:
      - uses: tree-sitter/setup-action@v2
        with:
          install-lib: false
      - run: tree-sitter generate