Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 9 additions & 7 deletions .github/workflows/test_on_push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,29 +11,31 @@ jobs:
github.event_name == 'pull_request' && github.event.pull_request.head.repo.owner.login != 'tarantool'
strategy:
matrix:
tarantool: ["2.10"]
tarantool: ["2.11"]
fail-fast: false
runs-on: [ubuntu-22.04]
steps:
- uses: actions/checkout@v5
- uses: tarantool/setup-tarantool@v4
with:
tarantool-version: ${{ matrix.tarantool }}
- run: |
wget -O /tmp/tt.deb https://github.com/tarantool/tt/releases/download/v2.11.0/tt_2.11.0_amd64.deb
sudo apt install /tmp/tt.deb

- name: Build module
run: |
tarantoolctl rocks make
tt rocks make

- name: Run linter
run: |
tarantoolctl rocks install luacheck 0.25.0
tt 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 1.2.1
tt rocks install https://luarocks.org/manifests/gvvaughan/lpeg-1.1.0-2.rockspec
tt rocks make --chdir graphql-lua
tt rocks install luatest 1.2.1
.rocks/bin/luatest -v