File tree Expand file tree Collapse file tree 2 files changed +53
-0
lines changed Expand file tree Collapse file tree 2 files changed +53
-0
lines changed Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change @@ -36,6 +36,12 @@ add_custom_target(luatest
36
36
COMMENT "Run regression tests"
37
37
)
38
38
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
+
39
45
set (PERFORMANCE_TESTS_SUBDIR "test/performance" )
40
46
41
47
add_custom_target (performance
You can’t perform that action at this time.
0 commit comments