mirror of
https://github.com/harivansh-afk/forge.nvim.git
synced 2026-04-15 07:04:47 +00:00
ci: release workflow
This commit is contained in:
parent
65f857aa1d
commit
e7dd173bf4
2 changed files with 41 additions and 0 deletions
22
.github/workflows/luarocks-dev.yaml
vendored
Normal file
22
.github/workflows/luarocks-dev.yaml
vendored
Normal file
|
|
@ -0,0 +1,22 @@
|
||||||
|
name: luarocks-dev
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [main]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
quality:
|
||||||
|
uses: ./.github/workflows/quality.yaml
|
||||||
|
|
||||||
|
publish:
|
||||||
|
needs: quality
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- uses: nvim-neorocks/luarocks-tag-release@v7
|
||||||
|
env:
|
||||||
|
LUAROCKS_API_KEY: ${{ secrets.LUAROCKS_API_KEY }}
|
||||||
|
with:
|
||||||
|
version: scm
|
||||||
|
|
@ -714,6 +714,25 @@ function M.config()
|
||||||
if user.keys == false then
|
if user.keys == false then
|
||||||
cfg.keys = false
|
cfg.keys = false
|
||||||
end
|
end
|
||||||
|
|
||||||
|
vim.validate('forge.sources', cfg.sources, 'table')
|
||||||
|
vim.validate('forge.keys', cfg.keys, function(v)
|
||||||
|
return v == false or type(v) == 'table'
|
||||||
|
end, 'table or false')
|
||||||
|
vim.validate('forge.display', cfg.display, 'table')
|
||||||
|
vim.validate('forge.display.icons', cfg.display.icons, 'table')
|
||||||
|
vim.validate('forge.display.widths', cfg.display.widths, 'table')
|
||||||
|
vim.validate('forge.display.limits', cfg.display.limits, 'table')
|
||||||
|
vim.validate('forge.ci', cfg.ci, 'table')
|
||||||
|
vim.validate('forge.ci.lines', cfg.ci.lines, 'number')
|
||||||
|
|
||||||
|
for name, source in pairs(cfg.sources) do
|
||||||
|
vim.validate('forge.sources.' .. name, source, 'table')
|
||||||
|
if source.hosts ~= nil then
|
||||||
|
vim.validate('forge.sources.' .. name .. '.hosts', source.hosts, 'table')
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
return cfg
|
return cfg
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue