Skip to content

Commit

Permalink
Remove containers to free the DB port before running SSL auth tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ThibsG committed Jul 19, 2022
1 parent 900eeb8 commit 5caca9b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/sqlx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ jobs:
# client SSL authentication

- run: |
docker-compose -f tests/docker-compose.yml stop postgres_${{ matrix.postgres }}
docker-compose -f tests/docker-compose.yml down postgres_${{ matrix.postgres }}
docker-compose -f tests/docker-compose.yml run -d -p 5432:5432 --name postgres_${{ matrix.postgres }}_client_ssl postgres_${{ matrix.postgres }}_client_ssl
docker exec postgres_${{ matrix.postgres }}_client_ssl bash -c "until pg_isready; do sleep 1; done"
Expand Down Expand Up @@ -311,7 +311,7 @@ jobs:
# client SSL authentication

- run: |
docker-compose -f tests/docker-compose.yml stop mysql_${{ matrix.mysql }}
docker-compose -f tests/docker-compose.yml down mysql_${{ matrix.mysql }}
docker-compose -f tests/docker-compose.yml run -d -p 3306:3306 mysql_${{ matrix.mysql }}_client_ssl
sleep 60
Expand Down Expand Up @@ -372,7 +372,7 @@ jobs:
# client SSL authentication

- run: |
docker-compose -f tests/docker-compose.yml stop mysql_${{ matrix.mysql }}
docker-compose -f tests/docker-compose.yml down mysql_${{ matrix.mysql }}
docker-compose -f tests/docker-compose.yml run -d -p 3306:3306 mysql_${{ matrix.mysql }}_client_ssl
sleep 60
Expand Down

0 comments on commit 5caca9b

Please sign in to comment.