mirror of
https://github.com/launchbadge/sqlx
synced 2024-11-10 06:24:16 +00:00
fix(ci): don't run TLS tests when building without TLS (duh)
This commit is contained in:
parent
16ffaed73b
commit
f7301f67d1
1 changed files with 7 additions and 5 deletions
12
.github/workflows/sqlx.yml
vendored
12
.github/workflows/sqlx.yml
vendored
|
@ -349,13 +349,14 @@ jobs:
|
|||
|
||||
# client SSL authentication
|
||||
|
||||
- run: |
|
||||
- if: ${{ matrix.tls != 'none' }}
|
||||
run: |
|
||||
docker stop mysql_${{ matrix.mysql }}
|
||||
docker compose -f tests/docker-compose.yml run -d -p 3306:3306 --name mysql_${{ matrix.mysql }}_client_ssl mysql_${{ matrix.mysql }}_client_ssl
|
||||
sleep 60
|
||||
|
||||
# MySQL 5.7 supports TLS but not TLSv1.3 as required by RusTLS.
|
||||
- run: >
|
||||
- if: ${{ matrix.tls != 'none' }}
|
||||
run: >
|
||||
cargo test
|
||||
--no-default-features
|
||||
--features any,mysql,macros,_unstable-all-types,runtime-${{ matrix.runtime }},tls-${{ matrix.tls }}
|
||||
|
@ -424,12 +425,13 @@ jobs:
|
|||
|
||||
# client SSL authentication
|
||||
|
||||
- run: |
|
||||
- if: ${{ matrix.tls != 'none' }}
|
||||
run: |
|
||||
docker stop mariadb_${{ matrix.mariadb }}
|
||||
docker compose -f tests/docker-compose.yml run -d -p 3306:3306 --name mariadb_${{ matrix.mariadb }}_client_ssl mariadb_${{ matrix.mariadb }}_client_ssl
|
||||
sleep 60
|
||||
|
||||
- if: matrix.tls != 'none'
|
||||
- if: ${{ matrix.tls != 'none' }}
|
||||
run: >
|
||||
cargo test
|
||||
--no-default-features
|
||||
|
|
Loading…
Reference in a new issue