Skip to content

Commit 40e3dd4

Browse files
committed
add mysql to ci
1 parent 2ee2550 commit 40e3dd4

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

.github/workflows/ci.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ env:
1010
RUSTFLAGS: -Dwarnings
1111
POSTGRES_DB: async_sqlx_session_tests
1212
PG_TEST_DB_URL: postgres://postgres:postgres@localhost/async_sqlx_session_tests
13+
MYSQL_DB: async_sqlx_session_tests
14+
MYSQL_TEST_DB_URL: mysql://root@localhost/async_sqlx_session_tests
1315

1416
jobs:
1517
build_and_test:
@@ -33,6 +35,19 @@ jobs:
3335
ports:
3436
- 5432:5432
3537

38+
mysql:
39+
image: mysql
40+
env:
41+
MYSQL_ROOT_PASSWORD: root
42+
MYSQL_DATABASE: async_sqlx_session_tests
43+
ports:
44+
- 3306:3306
45+
options: >-
46+
--health-cmd "mysqladmin ping"
47+
--health-interval 10s
48+
--health-timeout 5s
49+
--health-retries 3
50+
3651
steps:
3752
- uses: actions/checkout@main
3853

0 commit comments

Comments
 (0)