mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-21 12:50:09 -04:00
ci: only run query checks if lints succeed
This commit is contained in:
parent
7b8e15d998
commit
66cd1f497c
3 changed files with 5 additions and 5 deletions
5
.github/workflows/lint.yml
vendored
5
.github/workflows/lint.yml
vendored
|
|
@ -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
|
||||
|
|
|
|||
3
.github/workflows/test-core.yml
vendored
3
.github/workflows/test-core.yml
vendored
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
; CREDITS @maxbrunsfeld (maxbrunsfeld@gmail.com)
|
||||
; Variables
|
||||
(identifier) @variable
|
||||
(identifier) @variableasdfasdfasdf
|
||||
|
||||
(underscore_pattern) @character.special
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue