Skip to content

Commit 8daa33b

Browse files
authored
ci: add reusable testing workflow (#18)
The idea of this workflow is to be a part of the 'integration.yml' workflow from the tarantool repo to verify the integration of the tarantool-php/queue connector with an arbitrary tarantool version. This workflow is not triggered on a push to the repo and cannot be run manually since it has only the 'workflow_call' trigger. This workflow will be included in the tarantool development cycle and called by the 'integration.yml' workflow from the tarantool project on a push to the master and release branches for verifying integration of tarantool with tarantool-php/queue. Part of tarantool/tarantool#6595 Part of tarantool/tarantool#5265 Part of tarantool/tarantool#6056
1 parent 79a54ab commit 8daa33b

File tree

1 file changed

+45
-0
lines changed

1 file changed

+45
-0
lines changed

.github/workflows/reusable_qa.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: reusable_qa
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+
steps:
16+
- name: Clone the tarantool-php/queue connector
17+
uses: actions/checkout@v2
18+
with:
19+
repository: tarantool-php/queue
20+
21+
- name: Download the tarantool build artifact
22+
uses: actions/download-artifact@v2
23+
with:
24+
name: ${{ inputs.artifact_name }}
25+
26+
- name: Install tarantool
27+
# Now we're lucky: all dependencies are already installed. Check package
28+
# dependencies when migrating to other OS version.
29+
run: sudo dpkg -i tarantool*.deb
30+
31+
- name: Install the tarantool/queue module
32+
run: tarantoolctl rocks install queue
33+
34+
- name: Build docker image with connector setup
35+
run: ./dockerfile.sh | tee /dev/tty | docker build -t queue -
36+
env:
37+
TNT_LISTEN_URI: localhost:3301
38+
39+
- name: Run tarantool
40+
run: tarantool ./tests/Integration/queues.lua > tarantool.log 2>&1 &
41+
env:
42+
TNT_LISTEN_URI: localhost:3301
43+
44+
- name: Run connector tests from docker container
45+
run: docker run --rm --network=host -v $PWD:/queue -w /queue queue

0 commit comments

Comments
 (0)