Skip to content

Commit 082bc72

Browse files
committed
ci: rethinking version check
Version check makes git clean before work and cleans all previous rocks installation. The idea is to install needed packages to the directory where it won't be cleaned by git bit it will be still visible for tarantool require. Test workflow is added to check this functionality before merging to master. Part of #77
1 parent 1b39a3f commit 082bc72

1 file changed

Lines changed: 31 additions & 0 deletions

File tree

.github/workflows/citests.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: citests
2+
3+
on:
4+
push:
5+
workflow_dispatch:
6+
7+
jobs:
8+
version-check:
9+
runs-on: ubuntu-24.04
10+
steps:
11+
- name: Install tarantool
12+
uses: tarantool/setup-tarantool@v4
13+
with:
14+
tarantool-version: '2.11'
15+
16+
- name: Install roles requirements
17+
run: tarantoolctl rocks install cartridge 2.16.6 --tree $HOME/tmp
18+
19+
- name: Check module version for api
20+
uses: tarantool/actions/check-module-version@master
21+
with:
22+
module-name: 'sharded_queue.api'
23+
version-pre-extraction-hook: |
24+
local home = os.getenv('HOME')
25+
package.path = package.path .. ';' .. home .. '/tmp/share/tarantool/?.lua;' ..
26+
home .. '/tmp/share/tarantool/?/init.lua'
27+
package.cpath = package.cpath .. ';' .. home .. '/tmp/lib/tarantool/?.so'
28+
- name: Check module version for storage
29+
uses: tarantool/actions/check-module-version@master
30+
with:
31+
module-name: 'sharded_queue.storage'

0 commit comments

Comments
 (0)