mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-15 01:40:02 -04:00
ci(lint): make sure query parser is installed from this repo
Problem: format-queries.lua in CI uses the bundled query parser from Neovim, meaning breaking changes are not reflected in tests. Solution: Install nvim-treesitter in the lint workflow and use it to install the query parser.
This commit is contained in:
parent
78e11ab7ce
commit
d3acd105bd
1 changed files with 4 additions and 3 deletions
7
.github/workflows/lint.yml
vendored
7
.github/workflows/lint.yml
vendored
|
|
@ -36,15 +36,16 @@ jobs:
|
||||||
format-queries:
|
format-queries:
|
||||||
name: Lint queries
|
name: Lint queries
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
env:
|
||||||
|
NVIM_TAG: stable
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- name: Prepare
|
- name: Prepare
|
||||||
run: |
|
run: |
|
||||||
wget https://github.com/neovim/neovim/releases/download/nightly/nvim-linux64.tar.gz
|
bash ./scripts/ci-install.sh
|
||||||
tar -zxf nvim-linux64.tar.gz
|
|
||||||
sudo ln -s "$PWD"/nvim-linux64/bin/nvim /usr/local/bin
|
|
||||||
|
|
||||||
- name: Lint
|
- name: Lint
|
||||||
run: |
|
run: |
|
||||||
|
nvim --headless -c "TSInstallSync query" -c "q"
|
||||||
nvim -l scripts/format-queries.lua
|
nvim -l scripts/format-queries.lua
|
||||||
git diff --exit-code
|
git diff --exit-code
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue