Add multiple language server association with syntax elements #1212
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: unit-tests | |
on: [push, pull_request] | |
jobs: | |
linux: | |
name: linux | |
runs-on: ubuntu-22.04 | |
strategy: | |
matrix: | |
vim: | |
- nightly | |
- v9.0.0000 | |
steps: | |
- name: Install packages | |
run: | | |
sudo apt-get update | |
# install clangd language server | |
sudo apt-get install -y clangd-15 | |
# install nodejs | |
sudo apt-get install -y curl | |
curl -fsSL https://deb.nodesource.com/setup_18.x | sudo bash - | |
sudo apt-get install -y nodejs | |
# install the typescript language server | |
sudo npm install -g typescript-language-server typescript | |
# install the golang language server | |
sudo apt-get install -y golang | |
sudo apt-get install -y gopls | |
# install the rust language server | |
sudo apt-get install -y cargo rust-src | |
mkdir -p ~/.local/bin | |
curl -L https://github.com/rust-lang/rust-analyzer/releases/latest/download/rust-analyzer-x86_64-unknown-linux-gnu.gz | gunzip -c - > ~/.local/bin/rust-analyzer | |
chmod +x ~/.local/bin/rust-analyzer | |
# install markdown language server | |
curl -L https://github.com/artempyanykh/marksman/releases/latest/download/marksman-linux-x64 -o ~/.local/bin/marksman | |
chmod +x ~/.local/bin/marksman | |
- name: Setup Vim | |
uses: rhysd/action-setup-vim@v1 | |
id: vim | |
with: | |
version: ${{ matrix.vim }} | |
- name: Checkout LSP plugin Code | |
uses: actions/checkout@v4 | |
- name: Run Tests | |
run: | | |
uname -a | |
~/.local/bin/rust-analyzer --version | |
export VIMPRG=${{ steps.vim.outputs.executable }} | |
$VIMPRG --version | |
cd test | |
echo 'THIS IS FOR DEBUG PURPOSE, THIS WILL BE REMOVED' | |
cat /tmp/mytest | |
./run_tests.sh |