-
Notifications
You must be signed in to change notification settings - Fork 110
69 lines (65 loc) · 1.85 KB
/
synth-mysql.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
59
60
61
62
63
64
65
66
67
68
69
name: synth-mysql
on:
push:
branches: [ master ]
paths: [ "**/*.rs", "synth/testing_harness/mysql/**" ]
pull_request:
branches: [ master ]
paths: [ "**/*.rs", "synth/testing_harness/mysql/**" ]
workflow_dispatch:
env:
RUSTFLAGS: "-D warnings"
jobs:
e2e_tests_mysql:
runs-on: ubuntu-latest
services:
mysql:
image: mysql
env:
MYSQL_ROOT_PASSWORD: mysecretpassword
MYSQL_DATABASE: test_db
ports:
- 3306:3306
options: >-
--name mysql-synth-harness
--health-cmd="mysqladmin ping"
--health-interval=10s
--health-timeout=5s
--health-retries=3
mariadb:
image: mariadb
env:
MARIADB_ROOT_PASSWORD: mysecretpassword
MARIADB_DATABASE: test_db
ports:
- 3307:3306
options: >-
--name mariadb-synth-harness
--health-cmd="mariadb-admin ping"
--health-interval=10s
--health-timeout=5s
--health-retries=5
strategy:
matrix:
include:
- db: mysql
port: 3306
- db: mariadb
port: 3307
steps:
- uses: actions/checkout@v2
## Set env. variables for this job
- run: |
echo "PORT=${{ matrix.port }}" >> $GITHUB_ENV
echo "SCHEME=${{ matrix.db }}" >> $GITHUB_ENV
- run: |
sudo apt-get update
sudo apt-get install --yes --no-install-recommends jq
- uses: dtolnay/rust-toolchain@nightly
- run: cargo install --locked --debug --path=synth
- run: ./e2e.sh test-generate
working-directory: synth/testing_harness/mysql
- run: ./e2e.sh test-import
working-directory: synth/testing_harness/mysql
- run: ./e2e.sh test-warnings
working-directory: synth/testing_harness/mysql