-
Notifications
You must be signed in to change notification settings - Fork 0
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
Showing
5 changed files
with
91 additions
and
6 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,14 @@ | ||
return { | ||
_all = { | ||
coverage = true | ||
}, | ||
default = { | ||
verbose = true | ||
}, | ||
apiUnit = { | ||
tags = "api", | ||
ROOT = {"spec/unit"}, | ||
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,48 @@ | ||
name: "spec" | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
# this runs the tests in the docker image against live sqlite and openresty | ||
docker: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@master | ||
|
||
- name: build | ||
run: docker build -t pagesix-test . | ||
|
||
- name: test | ||
run: docker run pagesix-test | ||
|
||
# this runs all generic lua tests | ||
test: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
luaVersion: ["5.1", "5.4", "luajit", "luajit-openresty"] | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@master | ||
|
||
- uses: leafo/gh-actions-lua@master | ||
with: | ||
luaVersion: ${{ matrix.luaVersion }} | ||
|
||
- uses: leafo/gh-actions-luarocks@master | ||
|
||
- name: build | ||
run: | | ||
[[ "${{ matrix.luaVersion }}" =~ ^5\.[12]$ ]] && luarocks install luabitop || true | ||
luarocks install busted | ||
luarocks install moonscript | ||
luarocks install tableshape | ||
luarocks install lsqlite3 | ||
luarocks make | ||
- name: test | ||
run: | | ||
busted -o utfTerminal -v |
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 |
---|---|---|
|
@@ -55,3 +55,4 @@ image_cache/ | |
/.luarocks | ||
|
||
*.sqlite | ||
doc/ |
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,10 @@ | ||
{ | ||
"Lua.runtime.version": "LuaJIT", | ||
"Lua.diagnostics.globals": [ | ||
"ngx" | ||
], | ||
"Lua.workspace.library": [ | ||
"${3rd}/OpenResty/library" | ||
], | ||
"todo-tree.tree.scanMode": "workspace" | ||
} |
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