fix(ci): don't run TLS tests when building without TLS (duh)

This commit is contained in:
Austin Bonander 2024-06-11 11:18:28 -07:00
parent 16ffaed73b
commit f7301f67d1

View file

@ -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