Skip to content

Only warn of parsers needed by the current filetype (#589) #1125

Only warn of parsers needed by the current filetype (#589)

Only warn of parsers needed by the current filetype (#589) #1125

Workflow file for this run

name: CI
on:
push:
branches:
- "**"
pull_request:
branches:
- "**"
workflow_dispatch:
jobs:
stylua:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Check Lua formatting
uses: JohnnyMorganz/stylua-action@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
version: latest
args: --check lua/ ftplugin/
build-windows:
runs-on: windows-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Build rnvimserver
shell: bash
run: |
cd rnvimserver
make
test:
runs-on: ubuntu-latest
strategy:
matrix:
neovim-version: [stable, nightly]
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install stable neovim
uses: rhysd/action-setup-vim@v1
with:
neovim: true
version: ${{ matrix.neovim-version }}
- name: Check Neovim version
run: nvim --version
- name: Install Dependencies
run: |
sudo apt-get update
sudo apt-get install -y software-properties-common curl wget jq
sudo apt-get install -y luarocks libuv1-dev make lua5.1 liblua5.1-dev libreadline-dev
# Install tree-sitter CLI (required for nvim-treesitter parser compilation)
npm install -g tree-sitter-cli
# Install luv for Neovim
sudo luarocks install luv
# Pre-install all busted dependencies to help lazy.nvim
# Using || true to continue even if some fail
sudo luarocks install dkjson || true
sudo luarocks install lua_cliargs || true
sudo luarocks install luasystem || true
sudo luarocks install say || true
sudo luarocks install luassert || true
sudo luarocks install lua-term || true
sudo luarocks install penlight || true
sudo luarocks install mediator_lua || true
sudo luarocks install luafilesystem || true
# Set environment variables
echo "LUA_PATH=\"$(luarocks path --lr-path)\"" >> $GITHUB_ENV
echo "LUA_CPATH=\"$(luarocks path --lr-cpath)\"" >> $GITHUB_ENV
nvim --headless -c "lua print(vim.inspect(vim.loop ~= nil))" -c "q"
- name: Run tests
run: |
export LUA_PATH="${LUA_PATH}"
export LUA_CPATH="${LUA_CPATH}"
make test