forked from tarantool/luagraphqlparser
-
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.
- Drop dependency from "cartridge" parse function in tests - Add Github Actions test workflow
- Loading branch information
Showing
12 changed files
with
142 additions
and
48 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,39 @@ | ||
name: Run tests | ||
|
||
on: | ||
push: | ||
pull_request: | ||
|
||
jobs: | ||
run-tests-ce: | ||
if: | | ||
github.event_name == 'push' || | ||
github.event_name == 'pull_request' && github.event.pull_request.head.repo.owner.login != 'tarantool' | ||
strategy: | ||
matrix: | ||
tarantool: ["1.10", "2.6", "2.7"] | ||
fail-fast: false | ||
runs-on: [ubuntu-latest] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: tarantool/setup-tarantool@v1 | ||
with: | ||
tarantool-version: ${{ matrix.tarantool }} | ||
|
||
- name: Build module | ||
run: | | ||
tarantoolctl rocks make | ||
- name: Run linter | ||
run: | | ||
tarantoolctl rocks install luacheck 0.25.0 | ||
.rocks/bin/luacheck . | ||
- name: Run tests | ||
run: | | ||
git clone https://github.com/bjornbytes/graphql-lua | ||
sed -i 's/lpeg/lulpeg/g' graphql-lua/graphql-0.0.2-1.rockspec | ||
sed -i "s/local lpeg = require 'lpeg'/local lpeg = require 'lulpeg'/g" graphql-lua/graphql/parse.lua | ||
tarantoolctl rocks make --chdir graphql-lua | ||
tarantoolctl rocks install luatest 0.5.2 | ||
.rocks/bin/luatest -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 |
---|---|---|
|
@@ -25,4 +25,6 @@ CTestTestfile.cmake | |
Testing | ||
cmake-build-debug/ | ||
build.luarocks/ | ||
.idea/ | ||
.idea/ | ||
.rocks/ | ||
graphql-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,15 @@ | ||
redefined = false | ||
std = { | ||
read_globals = { | ||
'require', 'debug', 'pcall', 'xpcall', 'tostring', | ||
'tonumber', 'type', 'assert', 'ipairs', 'math', 'error', 'string', | ||
'table', 'pairs', 'os', 'io', 'select', 'unpack', 'dofile', 'next', | ||
'loadstring', 'setfenv', 'utf8', 'tonumber64', 'print', 'load', | ||
'rawget', 'rawset', 'getmetatable', 'setmetatable', '_G', 'jit', | ||
'collectgarbage', | ||
}, | ||
} | ||
globals = {'box', 'utf8'} | ||
include_files = {'**/*.lua', '*.luacheckrc', '*.rockspec'} | ||
exclude_files = {'**/*.rocks/', 'graphql-lua/'} | ||
max_line_length = 120 |
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,32 @@ | ||
package = 'luagraphqlparser' | ||
version = '0.1.0-1' | ||
|
||
source = { | ||
url = 'git://github.com/tarantool/luagraphqlparser.git'; | ||
tag = '0.1.0'; | ||
} | ||
|
||
description = { | ||
summary = "Lua graphql parser"; | ||
detailed = [[ | ||
Lua port of libgraphqlparser | ||
]]; | ||
homepage = 'https://github.com/tarantool/luagraphqlparser.git'; | ||
maintainer = "Oleg Babin <[email protected]>"; | ||
license = 'BSD2'; | ||
} | ||
|
||
dependencies = { | ||
'lua == 5.1'; | ||
} | ||
|
||
build = { | ||
type = 'cmake'; | ||
variables = { | ||
CMAKE_BUILD_TYPE="RelWithDebInfo"; | ||
TARANTOOL_DIR="$(TARANTOOL_DIR)"; | ||
TARANTOOL_INSTALL_LIBDIR="$(LIBDIR)"; | ||
TARANTOOL_INSTALL_LUADIR="$(LUADIR)"; | ||
}; | ||
} | ||
-- vim: syntax=lua ts=4 sts=4 sw=4 et |
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
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
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
Oops, something went wrong.