-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add GHA test workflow, update setup section in docs
- Loading branch information
1 parent
5ce2018
commit bf74f90
Showing
5 changed files
with
149 additions
and
27 deletions.
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,13 @@ | ||
return { | ||
_all = { | ||
coverage = false, | ||
lpath = "lua/?.lua;lua/?/init.lua", | ||
lua = "~/.luarocks/bin/nlua", | ||
}, | ||
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 |
---|---|---|
@@ -0,0 +1,37 @@ | ||
--- | ||
name: luarocks test | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
ref: ${{ github.ref }} | ||
- name: Install neovim | ||
uses: rhysd/action-setup-vim@v1 | ||
with: | ||
neovim: true | ||
version: nightly | ||
- name: Install Lua | ||
uses: leso-kn/gh-actions-lua@master | ||
with: | ||
luaVersion: "5.1" | ||
- name: Install Luarocks | ||
uses: hishamhm/gh-actions-luarocks@master | ||
with: | ||
luarocksVersion: "3.11.0" | ||
|
||
- name: Install nlua using luarocks make | ||
run: luarocks make --local | ||
|
||
- name: Run tests | ||
run: | | ||
luarocks test --local |
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,23 @@ | ||
rockspec_format = '3.0' | ||
package = 'nlua' | ||
version = 'scm-1' | ||
|
||
source = { | ||
url = 'git+https://github.com/mfussenegger/nlua' | ||
} | ||
|
||
deploy = { | ||
wrap_bin_scripts = false, | ||
} | ||
|
||
test_dependencies = { | ||
"nlua" | ||
} | ||
|
||
build = { | ||
type = "builtin", | ||
modules = {}, | ||
install = { | ||
bin = { nlua = 'nlua', }, | ||
}, | ||
} |
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,5 @@ | ||
describe("nlua", function() | ||
it("can access vim.namespace", function() | ||
assert.are.same(vim.trim(" a"), "a") | ||
end) | ||
end) |