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 (stable release):

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

For list of available tags, check: https://github.com/neovim/neovim/tags

Compile from Source:

steps:
  - uses: actions/checkout@v2
  - uses: MunifTanjim/setup-neovim-action@v1
    with:
      tag: source
  - 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:

Top comments (0)