Workflow file for this run
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: Rust Build and Nvim Integration | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Build | |
run: cargo build --verbose | |
- uses: rhysd/action-setup-vim@v1 | |
with: | |
neovim: true | |
# TODO(patwie): For some reason they fail in github workflow and but locally | |
# everything is fine. | |
- name: Run Tests | |
run: | | |
NVIM_APPNAME=nvim-test nvim --version | |
cp ./target/debug/polyglot_ls /tmp/polyglot_ls | |
/tmp/polyglot_ls --version | |
ln -s $(realpath editor_integrations/nvim/nvim-config) ${HOME}/.config/nvim-test | |
ls -lart ${HOME}/.config/nvim-test | |
ls -lart ${HOME}/.config/nvim-test/ | |
NVIM_APPNAME=nvim-test nvim --headless "+Lazy! update" +qa | |
cd tests && ./run_all.sh | |
cat ~/.local/state/nvim-test/log |