mirror of
https://github.com/launchbadge/sqlx.git
synced 2025-12-29 21:00:54 +00:00
Fix port reference for MariaDB
This commit is contained in:
parent
2cc2fd5700
commit
cec532acb1
4
.github/workflows/mariadb.yml
vendored
4
.github/workflows/mariadb.yml
vendored
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user