diff --git a/.busted b/.busted new file mode 100644 index 0000000..ed81890 --- /dev/null +++ b/.busted @@ -0,0 +1,13 @@ +return { + _all = { + coverage = false, + lpath = "lua/?.lua;lua/?/init.lua", + lua = "nlua", + }, + default = { + verbose = true, + }, + tests = { + verbose = true, + }, +} diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7354940..7c53396 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -65,12 +65,9 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v5 - - uses: rhysd/action-setup-vim@v1 + - uses: nvim-neorocks/nvim-busted-action@v1 with: - neovim: true - version: ${{ matrix.nvim_version }} - - name: Run Test Cases - run: make test + nvim_version: ${{ matrix.nvim_version }} release: name: Release if: ${{ github.ref == 'refs/heads/master' }} diff --git a/gitlinker.nvim-scm-1.rockspec b/gitlinker.nvim-scm-1.rockspec new file mode 100644 index 0000000..7423210 --- /dev/null +++ b/gitlinker.nvim-scm-1.rockspec @@ -0,0 +1,16 @@ +rockspec_format = "3.0" +package = "gitlinker.nvim" +version = "scm-1" + +test_dependencies = { + "lua >= 5.1", + "nlua", +} + +source = { + url = "git+https://github.com/linrongbin16/" .. package, +} + +build = { + type = "builtin", +} diff --git a/spec/gitlinker/gitlinker/actions_spec.lua b/spec/gitlinker/actions_spec.lua similarity index 100% rename from spec/gitlinker/gitlinker/actions_spec.lua rename to spec/gitlinker/actions_spec.lua diff --git a/spec/gitlinker/gitlinker/configs_spec.lua b/spec/gitlinker/configs_spec.lua similarity index 100% rename from spec/gitlinker/gitlinker/configs_spec.lua rename to spec/gitlinker/configs_spec.lua diff --git a/spec/gitlinker/gitlinker/git_spec.lua b/spec/gitlinker/git_spec.lua similarity index 100% rename from spec/gitlinker/gitlinker/git_spec.lua rename to spec/gitlinker/git_spec.lua diff --git a/spec/gitlinker/gitlinker/highlight_spec.lua b/spec/gitlinker/highlight_spec.lua similarity index 100% rename from spec/gitlinker/gitlinker/highlight_spec.lua rename to spec/gitlinker/highlight_spec.lua diff --git a/spec/gitlinker/gitlinker/linker_spec.lua b/spec/gitlinker/linker_spec.lua similarity index 100% rename from spec/gitlinker/gitlinker/linker_spec.lua rename to spec/gitlinker/linker_spec.lua diff --git a/spec/gitlinker/gitlinker/range_spec.lua b/spec/gitlinker/range_spec.lua similarity index 100% rename from spec/gitlinker/gitlinker/range_spec.lua rename to spec/gitlinker/range_spec.lua diff --git a/spec/gitlinker/gitlinker_spec.lua b/spec/gitlinker_spec.lua similarity index 100% rename from spec/gitlinker/gitlinker_spec.lua rename to spec/gitlinker_spec.lua