From 9f35041605ae0371fd94f669fe67eb5bd1574518 Mon Sep 17 00:00:00 2001 From: Marc Jakobi Date: Sat, 25 Mar 2023 16:32:34 +0100 Subject: [PATCH] feat: publish releases to luarocks (#185) neotest is a common dependency across Neovim plugins. Using luarocks may alleviate the need for users to specify their plugins' dependencies in their plugin manager. (e.g., vim-plug or packer). --- .github/workflows/luarocks-release.yaml | 17 +++++++++++++++++ README.md | 2 ++ 2 files changed, 19 insertions(+) create mode 100644 .github/workflows/luarocks-release.yaml diff --git a/.github/workflows/luarocks-release.yaml b/.github/workflows/luarocks-release.yaml new file mode 100644 index 00000000..63dcd787 --- /dev/null +++ b/.github/workflows/luarocks-release.yaml @@ -0,0 +1,17 @@ +on: + release: + types: [published] + +jobs: + luarocks-upload: + runs-on: ubuntu-22.04 + steps: + - uses: actions/checkout@v3 + - name: LuaRocks Upload + uses: nvim-neorocks/luarocks-tag-release@v4 + env: + LUAROCKS_API_KEY: ${{ secrets.LUAROCKS_API_KEY }} + with: + dependencies: | + plenary.nvim + nvim-treesitter diff --git a/README.md b/README.md index 96b8f376..c1b33327 100644 --- a/README.md +++ b/README.md @@ -27,6 +27,8 @@ See `:h neotest` for details on neotest is designed and how to interact with it ## Installation +[![LuaRocks](https://img.shields.io/luarocks/v/nvim-neotest/neotest?logo=lua&color=purple)](https://luarocks.org/modules/nvim-neotest/neotest) + Neotest uses [plenary.nvim](https://github.com/nvim-lua/plenary.nvim/). Most adapters will also require [nvim-treesitter](https://github.com/nvim-treesitter/nvim-treesitter).