generated from nvim-treesitter/module-template
-
Notifications
You must be signed in to change notification settings - Fork 210
39 lines (33 loc) · 1.29 KB
/
check_query_files.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: Check loading of syntax files
on:
push:
pull_request:
schedule:
- cron: "0 0 * * *" # every day at midnight
jobs:
luacheck:
name: Check Query Files
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- name: Install tree-sitter CLI
run: npm i -g tree-sitter-cli
- name: Prepare
env:
NVIM_TAG: nightly
run: |
sudo apt-get update && sudo apt-get install libfuse2
sudo add-apt-repository universe
wget https://github.com/neovim/neovim/releases/download/nightly/nvim-linux64.tar.gz
tar -zxf nvim-linux64.tar.gz
sudo ln -s "$PWD"/nvim-linux64/bin/nvim /usr/local/bin
mkdir -p ~/.local/share/nvim/site/pack/nvim-treesitter-textobject/start
ln -s $(pwd) ~/.local/share/nvim/site/pack/nvim-treesitter-textobject/start
mkdir -p ~/.local/share/nvim/site/pack/nvim-treesitter/start
cd ~/.local/share/nvim/site/pack/nvim-treesitter/start
git clone -b main https://github.com/nvim-treesitter/nvim-treesitter.git
- name: Compile parsers
run: nvim -l scripts/install_parsers.lua all
- name: Check query files
run: nvim --headless -c "luafile ./scripts/check-queries.lua" -c "q"