chore: run tests only on last stable release and on nightly

This commit is contained in:
Oleksandr Smirnov 2025-02-17 15:30:47 +02:00
parent 4f9d4695b1
commit 75f2c033fb
No known key found for this signature in database
2 changed files with 9 additions and 23 deletions

View file

@ -6,20 +6,9 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest]
nvim_version:
- nightly
- v0.7.0
- v0.7.2
- v0.8.0
- v0.8.1
- v0.8.2
- v0.8.3
- v0.9.0
- v0.9.1
- v0.9.2
- v0.9.4
- v0.9.5
version:
- v0.10.0
- nightly
runs-on: ${{ matrix.os }}
steps:
- name: Install Task
@ -30,16 +19,13 @@ jobs:
- uses: actions/checkout@v3
- name: Install Neovim
run: |
mkdir -p /tmp/nvim
wget -q https://github.com/neovim/neovim/releases/download/${{ matrix.nvim_version }}/nvim.appimage -O /tmp/nvim/nvim.appimage
cd /tmp/nvim
chmod a+x ./nvim.appimage
./nvim.appimage --appimage-extract
echo "/tmp/nvim/squashfs-root/usr/bin/" >> $GITHUB_PATH
- name: Install NeoVim
uses: rhysd/action-setup-vim@v1
with:
neovim: true
version: ${{ matrix.version }}
- name: Run Tests
run: |
nvim --version
task test
task tests

View file

@ -6,7 +6,7 @@ end
local function install_plug(plugin)
local name = plugin:match ".*/(.*)"
local package_root = root ".tests/site/pack/deps/start/"
if not vim.loop.fs_stat(package_root .. name) then
if not vim.uv.fs_stat(package_root .. name) then
print("Installing " .. plugin)
vim.fn.mkdir(package_root, "p")
vim.fn.system {