Skip to content

Commit cc2c3ca

Browse files
CopilotJulian
andcommitted
Add checkhealth vim.deprecate step to Neovim nightly CI workflow
Co-authored-by: Julian <329822+Julian@users.noreply.github.com>
1 parent e4e332a commit cc2c3ca

1 file changed

Lines changed: 24 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,30 @@ jobs:
4343
env:
4444
TEST_SEQUENTIAL: 1
4545

46+
- name: Run :checkhealth vim.deprecate
47+
if: matrix.nvim-version == 'nightly'
48+
run: |
49+
nvim --headless --clean \
50+
-c 'checkhealth vim.deprecate' \
51+
-c 'write! checkhealth-vim-deprecate.txt' \
52+
-c 'quitall' 2>&1 || true
53+
54+
{
55+
echo '## :checkhealth vim.deprecate'
56+
echo ''
57+
echo '```'
58+
cat checkhealth-vim-deprecate.txt
59+
echo '```'
60+
} >> "$GITHUB_STEP_SUMMARY"
61+
62+
cat checkhealth-vim-deprecate.txt
63+
64+
# Neovim's checkhealth output format uses '- ERROR' prefix for errors
65+
if grep -q '^- ERROR' checkhealth-vim-deprecate.txt; then
66+
echo "::error::checkhealth vim.deprecate reported errors"
67+
exit 1
68+
fi
69+
4670
release:
4771
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/v')
4872

0 commit comments

Comments
 (0)