mirror of
https://github.com/chenasraf/nvim-treesitter.git
synced 2026-05-17 17:38:02 +00:00
ci(test): remove parser cache
Since installation now installs parsers _and_ queries, caching parsers doesn't allow skipping the installation step (and caching queries does not pay off).
This commit is contained in:
committed by
Christian Clason
parent
e8bfe271b0
commit
6b55bc0fab
20
.github/workflows/test-core.yml
vendored
20
.github/workflows/test-core.yml
vendored
@@ -31,26 +31,14 @@ jobs:
|
||||
run: |
|
||||
bash ./scripts/ci-install.sh
|
||||
|
||||
- if: inputs.type == 'generate'
|
||||
name: Generate and compile parsers
|
||||
run: $NVIM -l ./scripts/install-parsers.lua --generate --max-jobs=2
|
||||
|
||||
- if: inputs.type == 'build'
|
||||
name: Setup Parsers Cache
|
||||
id: parsers-cache
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
path: |
|
||||
~/.local/share/nvim/site/parser/
|
||||
~/AppData/Local/nvim-data/site/parser/
|
||||
key: parsers-${{ join(matrix.*, '-') }}-${{ hashFiles(
|
||||
'./lua/nvim-treesitter/install.lua',
|
||||
'./lua/nvim-treesitter/parsers.lua') }}
|
||||
|
||||
- if: inputs.type == 'build'
|
||||
name: Compile parsers
|
||||
run: $NVIM -l ./scripts/install-parsers.lua
|
||||
|
||||
- if: inputs.type == 'generate'
|
||||
name: Generate and compile parsers
|
||||
run: $NVIM -l ./scripts/install-parsers.lua --generate --max-jobs=2
|
||||
|
||||
- name: Check parsers
|
||||
run: $NVIM -l ./scripts/check-parsers.lua
|
||||
|
||||
|
||||
Reference in New Issue
Block a user