aboutsummaryrefslogtreecommitdiffstats
path: root/.github/workflows
diff options
context:
space:
mode:
authorMunif Tanjim <hello@muniftanjim.dev>2022-01-21 22:13:24 +0600
committerStephan Seitz <stephan.seitz@fau.de>2022-01-21 17:52:06 +0100
commit2c7c87570b4e4fc23e0569accf7372302bfbfa19 (patch)
treebf01fe1821267a50b9936d0a507e051c78f2c910 /.github/workflows
parentUpdate lockfile.json (diff)
downloadnvim-treesitter-2c7c87570b4e4fc23e0569accf7372302bfbfa19.tar
nvim-treesitter-2c7c87570b4e4fc23e0569accf7372302bfbfa19.tar.gz
nvim-treesitter-2c7c87570b4e4fc23e0569accf7372302bfbfa19.tar.bz2
nvim-treesitter-2c7c87570b4e4fc23e0569accf7372302bfbfa19.tar.lz
nvim-treesitter-2c7c87570b4e4fc23e0569accf7372302bfbfa19.tar.xz
nvim-treesitter-2c7c87570b4e4fc23e0569accf7372302bfbfa19.tar.zst
nvim-treesitter-2c7c87570b4e4fc23e0569accf7372302bfbfa19.zip
ci: cache parsers for workflows/tests
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/tests.yml8
1 files changed, 7 insertions, 1 deletions
diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml
index d53a50a25..cc81a5bbf 100644
--- a/.github/workflows/tests.yml
+++ b/.github/workflows/tests.yml
@@ -33,8 +33,14 @@ jobs:
run: |
bash ./scripts/ci-install-${{ matrix.os }}.sh
+ - name: Setup Parsers Cache
+ id: parsers-cache
+ uses: actions/cache@v2
+ with:
+ path: ./parser/
+ key: ${{ matrix.os }}-parsers-v1-${{ hashFiles('./lockfile.json', './lua/nvim-treesitter/parsers.lua', './lua/nvim-treesitter/install.lua') }}
- name: Compile parsers Unix like
- if: matrix.os != 'windows-latest'
+ if: ${{ matrix.os != 'windows-latest' && steps.parsers-cache.outputs.cache-hit != 'true' }}
run: |
nvim --headless -c "TSInstallSync all" -c "q"