ci: add ci workflow #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Neovim Nightly Test | |
on: [push, pull_request] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
neovim_version: ['nightly', 'stable'] | |
plugin_category: [ | |
'ux', | |
'lsp', | |
'git', | |
'winbar', | |
'telescope', | |
'autocomplete', | |
'edit', | |
'navigation', | |
'whichkey', | |
'ai', | |
'custom_ai', | |
'optional', | |
] | |
steps: | |
- name: Set up Neovim nightly | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '18' | |
run: | | |
sudo add-apt-repository ppa:neovim-ppa/${{ matrix.neovim_version }} -y | |
sudo apt-get update | |
sudo apt-get install neovim -y | |
- name: Install Python and Rust | |
run: | | |
sudo apt-get install python3 -y | |
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y | |
export PATH="$HOME/.cargo/bin:$PATH" | |
- name: Install Node.js v18 | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '18' | |
- name: Test Neovim configs | |
run: | | |
for category in "${{ matrix.plugin_category }}"; do | |
cmd="lua vim.g.plugin_settings = '"$category"=true'" | |
nvim -u . --headless --cmd $cmd +'q' init.lua | |
done |