mirror of
https://github.com/nvim-treesitter/nvim-treesitter-context
synced 2024-09-16 22:24:04 +02:00
ci: fixup
This commit is contained in:
parent
c6a9e45bb4
commit
7867da7314
3 changed files with 25 additions and 12 deletions
20
.github/workflows/ci.yml
vendored
20
.github/workflows/ci.yml
vendored
|
@ -20,7 +20,9 @@ jobs:
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
neovim_version: ['v0.9.5', 'v0.10.0' ]
|
neovim_version:
|
||||||
|
- 'v0.9.5'
|
||||||
|
# - 'v0.10.0'
|
||||||
|
|
||||||
env:
|
env:
|
||||||
NEOVIM_VERSION: ${{ matrix.neovim_version }}
|
NEOVIM_VERSION: ${{ matrix.neovim_version }}
|
||||||
|
@ -40,8 +42,20 @@ jobs:
|
||||||
- name: Download nvim-test
|
- name: Download nvim-test
|
||||||
run: make nvim-test
|
run: make nvim-test
|
||||||
|
|
||||||
|
- name: Download nvim-treesitter
|
||||||
|
run: make nvim-treesitter
|
||||||
|
|
||||||
|
- name: Parsers Cache
|
||||||
|
uses: actions/cache@v4
|
||||||
|
with:
|
||||||
|
path: ./nvim-treesitter/parser/
|
||||||
|
key: parsers-${{ join(matrix.*, '-') }}-${{ hashFiles(
|
||||||
|
'./nvim-treesitter/lockfile.json',
|
||||||
|
'./nvim-treesitter/lua/nvim-treesitter/install.lua',
|
||||||
|
'./nvim-treesitter/lua/nvim-treesitter/parsers.lua') }}
|
||||||
|
|
||||||
- name: Install parsers
|
- name: Install parsers
|
||||||
run: make parsers NEOVIM_VERSION=$NEOVIM_VERSION
|
run: make parsers
|
||||||
|
|
||||||
- name: Run Test
|
- name: Run Test
|
||||||
run: make test NEOVIM_VERSION=$NEOVIM_VERSION
|
run: make test
|
||||||
|
|
6
.github/workflows/nightly.yml
vendored
6
.github/workflows/nightly.yml
vendored
|
@ -35,12 +35,10 @@ jobs:
|
||||||
- name: Download nvim-treesitter
|
- name: Download nvim-treesitter
|
||||||
run: make nvim-treesitter
|
run: make nvim-treesitter
|
||||||
|
|
||||||
- name: Setup Parsers Cache
|
- name: Parsers Cache
|
||||||
id: parsers-cache
|
|
||||||
uses: actions/cache@v4
|
uses: actions/cache@v4
|
||||||
with:
|
with:
|
||||||
path: |
|
path: ./nvim-treesitter/parser/
|
||||||
./nvim-treesitter/parser/
|
|
||||||
key: parsers-${{ join(matrix.*, '-') }}-${{ hashFiles(
|
key: parsers-${{ join(matrix.*, '-') }}-${{ hashFiles(
|
||||||
'./nvim-treesitter/lockfile.json',
|
'./nvim-treesitter/lockfile.json',
|
||||||
'./nvim-treesitter/lua/nvim-treesitter/install.lua',
|
'./nvim-treesitter/lua/nvim-treesitter/install.lua',
|
||||||
|
|
11
Makefile
11
Makefile
|
@ -1,6 +1,7 @@
|
||||||
.DEFAULT_GOAL := test
|
.DEFAULT_GOAL := test
|
||||||
|
|
||||||
NEOVIM_VERSION := v0.9.5
|
NEOVIM_VERSION ?= v0.9.5
|
||||||
|
NEOVIM_RUNNER_VERSION ?= v0.10.0
|
||||||
|
|
||||||
NVIM_TS_SHA ?= 98460428
|
NVIM_TS_SHA ?= 98460428
|
||||||
|
|
||||||
|
@ -16,14 +17,14 @@ nvim-treesitter:
|
||||||
|
|
||||||
nvim-test:
|
nvim-test:
|
||||||
git clone https://github.com/lewis6991/nvim-test
|
git clone https://github.com/lewis6991/nvim-test
|
||||||
nvim-test/bin/nvim-test --init
|
nvim-test/bin/nvim-test --init \
|
||||||
--runner_version $(NEOVIM_VERSION) \
|
--runner_version $(NEOVIM_RUNNER_VERSION) \
|
||||||
--target_version $(NEOVIM_VERSION)
|
--target_version $(NEOVIM_VERSION)
|
||||||
|
|
||||||
.PHONY: test
|
.PHONY: test
|
||||||
test: nvim-test nvim-treesitter
|
test: nvim-test nvim-treesitter
|
||||||
nvim-test/bin/nvim-test test \
|
nvim-test/bin/nvim-test test \
|
||||||
--runner_version $(NEOVIM_VERSION) \
|
--runner_version $(NEOVIM_RUNNER_VERSION) \
|
||||||
--target_version $(NEOVIM_VERSION) \
|
--target_version $(NEOVIM_VERSION) \
|
||||||
--lpath=$(PWD)/lua/?.lua \
|
--lpath=$(PWD)/lua/?.lua \
|
||||||
--filter="$(FILTER)" \
|
--filter="$(FILTER)" \
|
||||||
|
@ -31,7 +32,7 @@ test: nvim-test nvim-treesitter
|
||||||
|
|
||||||
.PHONY: parsers
|
.PHONY: parsers
|
||||||
parsers: nvim-test nvim-treesitter
|
parsers: nvim-test nvim-treesitter
|
||||||
$(XDG_DATA_HOME)/nvim-test/nvim-test-$(NEOVIM_VERSION)/bin/nvim \
|
$(XDG_DATA_HOME)/nvim-test/nvim-runner-$(NEOVIM_RUNNER_VERSION)/bin/nvim \
|
||||||
--clean -u NONE -c 'source install_parsers.lua'
|
--clean -u NONE -c 'source install_parsers.lua'
|
||||||
|
|
||||||
lint:
|
lint:
|
||||||
|
|
Loading…
Reference in a new issue