chore: replace submodule with bootstrap script for test dependency
Remove the .tests/vendor/plenary.nvim git submodule so Neovim plugin managers (lazy.nvim, etc.) don't pull it during installation. Instead, run_tests.ps1 and run_checks.ps1 clone plenary.nvim on demand if it's not present. The .gitea CI workflow also gets its own bootstrap step. Add .gitignore to exclude the bootstrapped vendor directory.
This commit is contained in:
@@ -31,5 +31,7 @@ jobs:
|
||||
run: stylua --check .
|
||||
- name: Lint
|
||||
run: lua-language-server --check=.
|
||||
- name: Bootstrap plenary.nvim
|
||||
run: git clone --depth 1 https://github.com/nvim-lua/plenary.nvim .tests/vendor/plenary.nvim
|
||||
- name: Test
|
||||
run: nvim --headless -c "PlenaryBustedDirectory tests/watchexec/ {minimal_init = 'tests/minimal_init.lua'}" -c "q"
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
.tests/vendor/
|
||||
@@ -1,3 +0,0 @@
|
||||
[submodule ".tests/vendor/plenary.nvim"]
|
||||
path = .tests/vendor/plenary.nvim
|
||||
url = https://github.com/nvim-lua/plenary.nvim
|
||||
Vendored
-1
Submodule .tests/vendor/plenary.nvim deleted from 74b06c6c75
@@ -21,6 +21,14 @@ if ($LASTEXITCODE -ne 0) {
|
||||
|
||||
Write-Host "PASS" -ForegroundColor Green
|
||||
|
||||
$plenaryPath = ".tests/vendor/plenary.nvim"
|
||||
|
||||
if (-not (Test-Path $plenaryPath)) {
|
||||
Write-Host "Bootstrapping plenary.nvim for tests..." -ForegroundColor Yellow
|
||||
New-Item -ItemType Directory -Path ".tests/vendor" -Force | Out-Null
|
||||
git clone --depth 1 https://github.com/nvim-lua/plenary.nvim $plenaryPath
|
||||
}
|
||||
|
||||
Write-Host "`n=== Test ==="
|
||||
|
||||
nvim --headless -c "PlenaryBustedDirectory tests/watchexec/ {minimal_init = 'tests/minimal_init.lua'}"
|
||||
|
||||
@@ -1 +1,9 @@
|
||||
$plenaryPath = ".tests/vendor/plenary.nvim"
|
||||
|
||||
if (-not (Test-Path $plenaryPath)) {
|
||||
Write-Host "Bootstrapping plenary.nvim for tests..." -ForegroundColor Yellow
|
||||
New-Item -ItemType Directory -Path ".tests/vendor" -Force | Out-Null
|
||||
git clone --depth 1 https://github.com/nvim-lua/plenary.nvim $plenaryPath
|
||||
}
|
||||
|
||||
nvim --headless -c "PlenaryBustedDirectory tests/watchexec/ {minimal_init = 'tests/minimal_init.lua'}"
|
||||
|
||||
Reference in New Issue
Block a user