ci: only run query checks if lints succeed

This commit is contained in:
Riley Bruins 2025-05-03 15:19:31 -07:00
parent 7b8e15d998
commit 66cd1f497c
3 changed files with 5 additions and 5 deletions

View file

@ -21,7 +21,7 @@ jobs:
run: make checklua
queries:
name: Lint query files
name: Format query files
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
@ -31,9 +31,6 @@ jobs:
make formatquery
git diff --exit-code
- name: Lint
run: make lintquery
readme:
name: Lint docs
runs-on: ubuntu-latest

View file

@ -47,6 +47,9 @@ jobs:
'./lua/nvim-treesitter/install.lua',
'./lua/nvim-treesitter/parsers.lua') }}
- name: Lint queries
run: make lintquery
- if: inputs.type == 'build'
name: Compile parsers
run: $NVIM -l ./scripts/install-parsers.lua

View file

@ -1,6 +1,6 @@
; CREDITS @maxbrunsfeld (maxbrunsfeld@gmail.com)
; Variables
(identifier) @variable
(identifier) @variableasdfasdfasdf
(underscore_pattern) @character.special