Skip to content

Commit 0026e51

Browse files
slavakirichenkoDifferentialOrange
authored andcommitted
ci: add reusable testing workflow for crud module
* Add reusable testing workflow for integration testing of crud module. * Add new target to use regression testing without using coverage. Part of tarantool/tarantool#6620
1 parent 190e8dc commit 0026e51

File tree

2 files changed

+53
-0
lines changed

2 files changed

+53
-0
lines changed

.github/workflows/reusable_test.yml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: Reusable test
2+
3+
on:
4+
workflow_call:
5+
inputs:
6+
artifact_name:
7+
description: The name of the Tarantool build artifact
8+
default: ubuntu-focal
9+
required: false
10+
type: string
11+
12+
jobs:
13+
run_tests:
14+
runs-on: ubuntu-20.04
15+
16+
steps:
17+
- name: Clone the crud module
18+
uses: actions/checkout@v3
19+
with:
20+
repository: ${{ github.repository_owner }}/crud
21+
22+
- name: Download the Tarantool build artifact
23+
uses: actions/download-artifact@v3
24+
with:
25+
name: ${{ inputs.artifact_name }}
26+
27+
# All dependencies for tarantool are already installed in Ubuntu 20.04.
28+
# Check package dependencies when migrating to other OS version.
29+
- name: Install Tarantool
30+
run: |
31+
sudo dpkg -i tarantool_*.deb tarantool-common_*.deb tarantool-dev_*.deb
32+
tarantool --version
33+
34+
- name: Install requirements
35+
run: ./deps.sh
36+
37+
- name: Install metrics
38+
run: tarantoolctl rocks install metrics 0.12.0
39+
40+
# This server starts and listen on 8084 port that is used for tests
41+
- name: Stop Mono server
42+
run: sudo kill -9 $(sudo lsof -t -i tcp:8084) || true
43+
44+
- run: cmake -S . -B build
45+
46+
- name: Run regression tests
47+
run: make -C build luatest-no-coverage

CMakeLists.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,12 @@ add_custom_target(luatest
3636
COMMENT "Run regression tests"
3737
)
3838

39+
add_custom_target(luatest-no-coverage
40+
COMMAND ${LUATEST} -v
41+
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
42+
COMMENT "Run regression tests without coverage"
43+
)
44+
3945
set(PERFORMANCE_TESTS_SUBDIR "test/performance")
4046

4147
add_custom_target(performance

0 commit comments

Comments
 (0)