From d3acd105bd48b6529cb5dc02e73d96990862e196 Mon Sep 17 00:00:00 2001 From: Christian Clason Date: Sat, 25 May 2024 19:09:55 +0200 Subject: 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. --- .github/workflows/lint.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to '.github/workflows') diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index b73f03cf8..7123332b7 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -36,15 +36,16 @@ jobs: format-queries: name: Lint queries runs-on: ubuntu-latest + env: + NVIM_TAG: stable steps: - uses: actions/checkout@v4 - name: Prepare run: | - 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 + bash ./scripts/ci-install.sh - name: Lint run: | + nvim --headless -c "TSInstallSync query" -c "q" nvim -l scripts/format-queries.lua git diff --exit-code -- cgit v1.2.3-70-g09d2