DEV Community

Munif Tanjim
Munif Tanjim

Posted on

Setup Neovim on Github Actions

My Workflow

I maintain some Neovim plugins and wanted to setup automated tests for those using GitHub Actions. First thing you need for testing Neovim plugin is "neovim" itself.

So I wrote this small GitHub Action with only 30-ish lines of code. It takes a Neovim release tag, downloads the archive and sets it up for you. It works on Linux and macOS.

This would be useful to anybody who maintains Neovim plugins.

Submission Category:

Maintainer Must-Haves

Yaml File or Link to Code

GitHub logo MunifTanjim / setup-neovim-action

🚀 Setup Neovim on Github Actions.

Setup Neovim - GitHub Action

Setup Neovim on Github Actions.

Usage

See action.yml

Basic:

steps:
  - uses: actions/checkout@v2
  - uses: MunifTanjim/setup-neovim-action@v1
  - run: |
      nvim --version
Enter fullscreen mode Exit fullscreen mode

Specific Tag:

steps:
  - uses: actions/checkout@v2
  - uses: MunifTanjim/setup-neovim-action@v1
    with:
      tag: nightly
  - run: |
      nvim --version
Enter fullscreen mode Exit fullscreen mode

License

Licensed under the MIT License. Check the LICENSE file for details.




Additional Resources / Info

If you want to see it in action, check:

Discussion (0)