mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-14 09:20:04 -04:00
ci: add folds to CI output to better group related information
This commit is contained in:
parent
ab29010c5b
commit
efedf3510a
1 changed files with 7 additions and 4 deletions
|
|
@ -35,6 +35,8 @@ local function do_check()
|
||||||
local captures = extract_captures()
|
local captures = extract_captures()
|
||||||
local last_error
|
local last_error
|
||||||
|
|
||||||
|
print "::group::Check parsers"
|
||||||
|
|
||||||
for _, lang in pairs(parsers) do
|
for _, lang in pairs(parsers) do
|
||||||
timings[lang] = {}
|
timings[lang] = {}
|
||||||
for _, query_type in pairs(query_types) do
|
for _, query_type in pairs(query_types) do
|
||||||
|
|
@ -64,6 +66,9 @@ local function do_check()
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
print "::endgroup::"
|
||||||
|
|
||||||
if last_error then
|
if last_error then
|
||||||
print()
|
print()
|
||||||
print "Last error: "
|
print "Last error: "
|
||||||
|
|
@ -92,16 +97,14 @@ for k, v in pairs(require("nvim-treesitter.parsers").get_parser_configs()) do
|
||||||
end
|
end
|
||||||
|
|
||||||
if ok then
|
if ok then
|
||||||
print(string.rep("-", 100))
|
print "::group::Timings"
|
||||||
print "Timings:"
|
|
||||||
print(string.rep("-", 100))
|
|
||||||
table.sort(result, function(a, b)
|
table.sort(result, function(a, b)
|
||||||
return a.duration < b.duration
|
return a.duration < b.duration
|
||||||
end)
|
end)
|
||||||
for i, val in ipairs(result) do
|
for i, val in ipairs(result) do
|
||||||
print(string.format("%i. %.02fms %s %s", #result - i + 1, val.duration * 1e-6, val.lang, val.query_type))
|
print(string.format("%i. %.02fms %s %s", #result - i + 1, val.duration * 1e-6, val.lang, val.query_type))
|
||||||
end
|
end
|
||||||
print(string.rep("-", 100))
|
print "::endgroup::"
|
||||||
print "Check successful!\n"
|
print "Check successful!\n"
|
||||||
vim.cmd "q"
|
vim.cmd "q"
|
||||||
else
|
else
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue