ci: new templates

This commit is contained in:
Folke Lemaitre 2023-01-04 20:23:36 +01:00
parent dea43afc4a
commit 886a91c688
No known key found for this signature in database
GPG Key ID: 41F8B1FBACAE2040
3 changed files with 7 additions and 18 deletions

View File

@ -12,11 +12,11 @@ body:
label: Did you check docs and existing issues? label: Did you check docs and existing issues?
description: Make sure you checked all of the below before submitting an issue description: Make sure you checked all of the below before submitting an issue
options: options:
- label: I have read all the lazy docs - label: I have read all the lazy.nvim docs
required: true required: true
- label: I have searched the existing issues of lazy - label: I have searched the existing issues of lazy.nvim
required: true required: true
- label: I have searched the exsiting issues of the plugin I have a problem with - label: I have searched the exsiting issues of plugins related to this issue
required: true required: true
- type: input - type: input
attributes: attributes:
@ -68,14 +68,7 @@ body:
-- bootstrap lazy -- bootstrap lazy
local lazypath = root .. "/plugins/lazy.nvim" local lazypath = root .. "/plugins/lazy.nvim"
if not vim.loop.fs_stat(lazypath) then if not vim.loop.fs_stat(lazypath) then
vim.fn.system({ vim.fn.system({ "git", "clone", "--filter=blob:none", "https://github.com/folke/lazy.nvim.git", lazypath, })
"git",
"clone",
"--filter=blob:none",
"--single-branch",
"https://github.com/folke/lazy.nvim.git",
lazypath,
})
end end
vim.opt.runtimepath:prepend(lazypath) vim.opt.runtimepath:prepend(lazypath)

View File

@ -8,7 +8,7 @@ body:
label: Did you check the docs? label: Did you check the docs?
description: Make sure you read all the docs before submitting a feature request description: Make sure you read all the docs before submitting a feature request
options: options:
- label: I have read all the lazy docs - label: I have read all the lazy.nvim docs
required: true required: true
- type: textarea - type: textarea
validations: validations:

View File

@ -15,17 +15,13 @@ jobs:
- name: Install Neovim - name: Install Neovim
shell: bash shell: bash
run: | run: |
if [ "$RUNNER_OS" == "Linux" ]; then
wget -q https://github.com/neovim/neovim/releases/download/nightly/nvim-linux64.deb -O /tmp/nvim.deb wget -q https://github.com/neovim/neovim/releases/download/nightly/nvim-linux64.deb -O /tmp/nvim.deb
sudo dpkg -i /tmp/nvim.deb sudo dpkg -i /tmp/nvim.deb
else
choco install neovim --pre
echo "C:/tools/neovim/nvim-win64/bin" >> $GITHUB_PATH
fi
- name: Run Tests - name: Run Tests
run: | run: |
nvim --version nvim --version
nvim --headless -u tests/init.lua -c "PlenaryBustedDirectory tests// {minimal_init = 'tests//init.lua', sequential = true}" [ ! -d tests ] && exit 0
nvim --headless -u tests/init.lua -c "PlenaryBustedDirectory tests/ {minimal_init = 'tests/init.lua', sequential = true}"
docs: docs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
needs: tests needs: tests