mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-20 20:30:05 -04:00
ci: skip swift check on neovim stable
This is meant as a temporary workaround until neovim 0.7 is released. More context: https://github.com/nvim-treesitter/nvim-treesitter/issues/2313#issuecomment-1025258357
This commit is contained in:
parent
51a09ce8a2
commit
6799824f6b
2 changed files with 33 additions and 22 deletions
|
|
@ -84,7 +84,14 @@ jobs:
|
||||||
run: cp -r ~/AppData/Local/nvim/pack/nvim-treesitter/start/nvim-treesitter/parser/* parser
|
run: cp -r ~/AppData/Local/nvim/pack/nvim-treesitter/start/nvim-treesitter/parser/* parser
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
||||||
|
# NOTE: this is a temporary workaround to skip swift tests on ubuntu
|
||||||
|
# stable and should be removed once neovim 0.7 is released.
|
||||||
|
- if: matrix.os == 'ubuntu-latest' && matrix.nvim_tag == 'stable'
|
||||||
|
run: echo "SKIP_SWIFT_CHECK=TRUE" >> $GITHUB_ENV
|
||||||
|
|
||||||
- name: Check query files (Unix)
|
- name: Check query files (Unix)
|
||||||
|
env:
|
||||||
|
SKIP_SWIFT_CHECK: ${{ env.SKIP_SWIFT_CHECK }}
|
||||||
if: matrix.os != 'windows-2022'
|
if: matrix.os != 'windows-2022'
|
||||||
run: nvim --headless -c "luafile ./scripts/check-queries.lua" -c "q"
|
run: nvim --headless -c "luafile ./scripts/check-queries.lua" -c "q"
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -44,6 +44,9 @@ local function do_check()
|
||||||
io_print "::group::Check parsers"
|
io_print "::group::Check parsers"
|
||||||
|
|
||||||
for _, lang in pairs(parsers) do
|
for _, lang in pairs(parsers) do
|
||||||
|
-- NOTE: this is a temporary workaround to skip swift tests on ubuntu
|
||||||
|
-- stable and should be removed once neovim 0.7 is released.
|
||||||
|
if vim.fn.getenv "SKIP_SWIFT_CHECK" == vim.NIL or lang ~= "swift" then
|
||||||
timings[lang] = {}
|
timings[lang] = {}
|
||||||
for _, query_type in pairs(query_types) do
|
for _, query_type in pairs(query_types) do
|
||||||
local before = vim.loop.hrtime()
|
local before = vim.loop.hrtime()
|
||||||
|
|
@ -72,6 +75,7 @@ local function do_check()
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
|
||||||
io_print "::endgroup::"
|
io_print "::endgroup::"
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue