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

View file

@ -6,7 +6,7 @@ end
local function install_plug(plugin) local function install_plug(plugin)
local name = plugin:match ".*/(.*)" local name = plugin:match ".*/(.*)"
local package_root = root ".tests/site/pack/deps/start/" 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) print("Installing " .. plugin)
vim.fn.mkdir(package_root, "p") vim.fn.mkdir(package_root, "p")
vim.fn.system { vim.fn.system {