-
Notifications
You must be signed in to change notification settings - Fork 7
58 lines (49 loc) · 1.4 KB
/
fast_testing.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
name: fast_testing
on:
workflow_dispatch:
pull_request:
push:
branches:
- 'master'
tags:
- '*'
jobs:
run_tests:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
tarantool:
- '1.10'
- '2.8'
- '2.10'
env:
MYSQL_HOST: 127.0.0.1
MYSQL_PORT: 3306
MYSQL_USER: tarantool
MYSQL_DATABASE: tarantool_mysql_test
steps:
- name: Clone the module
uses: actions/checkout@v3
with:
submodules: recursive
- name: Setup tarantool ${{ matrix.tarantool }}
uses: tarantool/setup-tarantool@v1
with:
tarantool-version: ${{ matrix.tarantool }}
- name: Restart mysql service
run: |
sudo systemctl restart mysql
- name: Prepare test environment
run: |
sudo mysql -proot -e "CREATE USER ${MYSQL_USER}@${MYSQL_HOST};"
sudo mysql -proot -e "GRANT ALL PRIVILEGES ON *.* \
TO ${MYSQL_USER}@${MYSQL_HOST};"
sudo mysql -proot -e "ALTER USER ${MYSQL_USER}@${MYSQL_HOST} \
IDENTIFIED WITH mysql_native_password BY '';"
sudo mysql -proot -e "CREATE DATABASE ${MYSQL_DATABASE};"
- run: cmake . && make
- run: make check
env:
MYSQL: '${{ env.MYSQL_HOST }}:${{ env.MYSQL_PORT }}:${{
env.MYSQL_USER }}::${{ env.MYSQL_DATABASE }}'