-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f0dfd5c
commit 3140726
Showing
9 changed files
with
116 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
return { | ||
_all = { | ||
coverage = false, | ||
lpath = "lua/?.lua;lua/?/init.lua", | ||
}, | ||
default = { | ||
verbose = true, | ||
}, | ||
tests = { | ||
verbose = true, | ||
}, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,12 @@ name: Lint and style | |
on: [push, pull_request] | ||
|
||
jobs: | ||
commit_lint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
# Check commit messages | ||
- uses: webiny/[email protected] | ||
|
||
stylua: | ||
name: stylua | ||
runs-on: ubuntu-20.04 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
name: LuaRocks release | ||
on: | ||
push: | ||
tags: # Will upload to luarocks.org when a tag is pushed | ||
- "*" | ||
pull_request: # Will test a local install without uploading to luarocks.org | ||
|
||
jobs: | ||
luarocks-release: | ||
runs-on: ubuntu-latest | ||
name: LuaRocks upload | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: LuaRocks Upload | ||
uses: nvim-neorocks/luarocks-tag-release@v5 | ||
env: | ||
LUAROCKS_API_KEY: ${{ secrets.LUAROCKS_API_KEY }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
/luarocks | ||
/lua_modules | ||
/.luarocks | ||
/lua |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
Copyright 2024 Ryan Kois | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
nvim-test: | ||
git clone https://github.com/lewis6991/nvim-test | ||
nvim-test/bin/nvim-test --init | ||
|
||
.PHONY: test | ||
test: nvim-test | ||
NVIM_TEST_VERSION=$(NVIM_TEST_VERSION) \ | ||
nvim-test/bin/nvim-test tests \ | ||
--lpath=$(PWD)/lua/?.lua \ | ||
--verbose \ | ||
--filter="$(FILTER)" | ||
|
||
-@stty sane |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
local _MODREV, _SPECREV = 'scm', '-1' | ||
rockspec_format = '3.0' | ||
package = 'jira.nvim' | ||
version = _MODREV .. _SPECREV | ||
|
||
description = { | ||
summary = 'Jira integration for Neovim', | ||
labels = { 'neovim' }, | ||
detailed = [[ | ||
jira.nvim: interact with Jira from Neovim, using the Jira REST API. | ||
]], | ||
homepage = 'http://github.com/kid-icarus/jira.nvim', | ||
license = 'MIT/X11', | ||
} | ||
|
||
dependencies = { | ||
'lua >= 5.1, < 5.4', | ||
'luassert', | ||
} | ||
|
||
source = { | ||
url = 'git://github.com/kid-icarus/jira.nvim', | ||
} | ||
|
||
test = { | ||
type = 'command', | ||
command = 'make test', | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/bin/sh | ||
BUSTED_VERSION="2.1.2-3" | ||
|
||
# Install busted if it is not already installed, sometimes you have to run this multiple times | ||
# because busted is trying to use a 5.4 version of lua | ||
if [ ! -d "lua_modules" ]; then | ||
luarocks init | ||
luarocks install busted "$BUSTED_VERSION" | ||
luarocks config --scope project lua_version 5.1 | ||
fi | ||
nvim -u NONE \ | ||
-c "lua package.path='lua_modules/share/lua/5.1/?.lua;lua_modules/share/lua/5.1/?/init.lua;'..package.path;package.cpath='lua_modules/lib/lua/5.1/?.so;'..package.cpath;local k,l,_=pcall(require,'luarocks.loader') _=k and l.add_context('busted','$BUSTED_VERSION')" \ | ||
-l "lua_modules/lib/luarocks/rocks-5.1/busted/$BUSTED_VERSION/bin/busted" "tests" |