mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17:02 -04:00
Add CI hack
This commit is contained in:
parent
4395783990
commit
c573cdd0a9
2 changed files with 6 additions and 7 deletions
8
.github/workflows/check_query_files.yml
vendored
8
.github/workflows/check_query_files.yml
vendored
|
|
@ -5,7 +5,7 @@ on: [push, pull_request]
|
|||
jobs:
|
||||
luacheck:
|
||||
name: Check Query Files
|
||||
runs-on: ubuntu-20.04
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
|
||||
|
|
@ -13,12 +13,6 @@ jobs:
|
|||
run: |
|
||||
sudo apt-get update
|
||||
sudo add-apt-repository universe
|
||||
sudo apt-get install -y npm
|
||||
mkdir ~/.npm-global
|
||||
npm config set prefix '~/.npm-global'
|
||||
export PATH=~/.npm-global/bin:$PATH
|
||||
npm i -g tree-sitter
|
||||
sudo cp ~/.npm-global/bin/tree-sitter /usr/bin/
|
||||
wget https://github.com/neovim/neovim/releases/download/nightly/nvim.appimage
|
||||
chmod u+x nvim.appimage
|
||||
mkdir -p ~/.local/share/nvim/site/pack/nvim-treesitter/start
|
||||
|
|
|
|||
|
|
@ -153,6 +153,11 @@ local function run_install(cache_folder, install_folder, lang, repo, with_sync,
|
|||
end
|
||||
local parser_lib_name = install_folder..path_sep..lang..".so"
|
||||
|
||||
if repo.requires_generate_from_grammar ~= 1 and vim.env.CI then
|
||||
print("Skipping language "..lang.." on CI (requires npm)!")
|
||||
return
|
||||
end
|
||||
|
||||
generate_from_grammar = repo.requires_generate_from_grammar or generate_from_grammar
|
||||
|
||||
if generate_from_grammar and vim.fn.executable('tree-sitter') ~= 1 then
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue