summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorSearidang Pa <dangsyncpa@gmail.com>2026-01-09 21:52:12 -0500
committerSearidang Pa <dangsyncpa@gmail.com>2026-01-09 21:52:12 -0500
commited13ed4037435b1923960c0e2c18bcae5d5bd720 (patch)
tree7ed5c06fb5d7775fd0df978fce9cf8789569abe8 /.github
parent3c7b04bd814fb6089691e3b57c410b6370e672d3 (diff)
downloada4-ed13ed4037435b1923960c0e2c18bcae5d5bd720.tar.xz
a4-ed13ed4037435b1923960c0e2c18bcae5d5bd720.zip
ci: install tree-sitter-cli for parser builds
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/makefile.yml13
1 files changed, 10 insertions, 3 deletions
diff --git a/.github/workflows/makefile.yml b/.github/workflows/makefile.yml
index 4e1aad3..db23913 100644
--- a/.github/workflows/makefile.yml
+++ b/.github/workflows/makefile.yml
@@ -48,6 +48,13 @@ jobs:
path: .xdg
key: ${{ runner.os }}-nvim-${{ env.NVIM_VERSION }}-ts-${{ env.NVIM_TREESITTER_SHA }}
+ - name: Install tree-sitter CLI
+ run: |
+ node --version
+ npm --version
+ sudo npm install -g tree-sitter-cli
+ tree-sitter --version
+
- name: Install plenary.nvim
run: |
git clone https://github.com/nvim-lua/plenary.nvim.git ../plenary.nvim
@@ -61,9 +68,9 @@ jobs:
run: |
nvim --headless -u NONE -i NONE \
-c "set rtp+=../nvim-treesitter" \
- -c "lua require('nvim-treesitter').install({ 'lua', 'typescript' }):wait(300000)" \
- -c "lua assert(#vim.api.nvim_get_runtime_file('parser/lua.so', true) > 0, 'lua parser missing after install')" \
- -c "lua assert(#vim.api.nvim_get_runtime_file('parser/typescript.so', true) > 0, 'typescript parser missing after install')" \
+ -c "lua local ok, err = pcall(function() require('nvim-treesitter').install({ 'lua', 'typescript' }):wait(300000) end); if not ok then vim.api.nvim_err_writeln(err); vim.cmd('cq') end" \
+ -c "lua if #vim.api.nvim_get_runtime_file('parser/lua.so', true) == 0 then vim.api.nvim_err_writeln('lua parser missing after install'); vim.cmd('cq') end" \
+ -c "lua if #vim.api.nvim_get_runtime_file('parser/typescript.so', true) == 0 then vim.api.nvim_err_writeln('typescript parser missing after install'); vim.cmd('cq') end" \
-c "qa"
- name: Run pr_ready