Fix port reference for MariaDB

This commit is contained in:
Ryan Leckey 2020-01-03 17:59:23 -08:00
parent 2cc2fd5700
commit cec532acb1

View File

@ -19,7 +19,7 @@ jobs:
MYSQL_DATABASE: sqlx
ports:
# will assign a random free host port
- 3309/tcp
- 3306/tcp
# needed because the container does not provide a healthcheck
options: --health-cmd "mysql --user=root --password=$MYSQL_PASSWORD -e 'show databases;'" --health-interval 30s --health-timeout 30s --health-retries 10
@ -52,4 +52,4 @@ jobs:
- run: cargo test -p sqlx --no-default-features --features 'mysql macros chrono'
env:
DATABASE_URL: mariadb://root:password@localhost:${{ job.services.mariadb.ports[3309] }}/sqlx
DATABASE_URL: mariadb://root:password@localhost:${{ job.services.mariadb.ports[3306] }}/sqlx