chore: try to fix ci mistakes

This commit is contained in:
JuanZoran 2023-03-27 12:04:43 +08:00
parent 0fa87770e7
commit 0ef08fbd19
4 changed files with 22 additions and 8 deletions

View File

@ -16,6 +16,9 @@ jobs:
mkdir -p _neovim
curl -sL "https://github.com/neovim/neovim/releases/download/${{ matrix.rev }}" | tar xzf - --strip-components=1 -C "${PWD}/_neovim"
}
mkdir -p ~/.local/share/nvim/site/pack/vendor/start
git clone --depth 1 https://github.com/nvim-lua/plenary.nvim ~/.local/share/nvim/site/pack/vendor/start/plenary.nvim
ln -s $(pwd) ~/.local/share/nvim/site/pack/vendor/start
- name: Run tests
run: |
export PATH="${PWD}/_neovim/bin:${PATH}"
@ -25,18 +28,24 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [ubuntu22.04]
rev:
[
nightly/nvim-linux64.tar.gz,
v0.8.2/nvim-linux64.tar.gz,
v0.7.2/nvim-linux64.tar.gz,
]
include:
- os: ubuntu-22.04
rev: nightly/nvim-linux64.tar.gz
- os: ubuntu-22.04
rev: v0.7.2/nvim-linux64.tar.gz
- os: ubuntu-22.04
rev: v0.8.2/nvim-linux64.tar.gz
name: Test
on:
pull_request:
paths:
- "lua/**"
- "plugin/**"
- "script/*"
- "makefile"
push:
paths:
- "lua/**"
- "plugin/**"
- "script/*"
- "makefile"

View File

@ -1,4 +1,4 @@
.PHONE: test
test:
@nvim --headless -c "lua require'plenary'" -c "PlenaryBustedDirectory lua/test/"
nvim --headless --noplugin -u script/minimal_init.vim -c "PlenaryBustedDirectory lua/test/ { minimal_init = './scripts/minimal_init.vim' }" -c 'qa!'

5
script/minimal_init.vim Normal file
View File

@ -0,0 +1,5 @@
set rtp+=.
set rtp+=../plenary.nvim/
runtime! plugin/plenary.vim
runtime! plugin/Trans.lua