mirror of
https://github.com/launchbadge/sqlx.git
synced 2025-12-29 21:00:54 +00:00
refactor(ci): Use separate job for postgres ssl auth tests (#3977)
Signed-off-by: Joshua Potts <8704475+iamjpotts@users.noreply.github.com>
This commit is contained in:
parent
5f8fc6b752
commit
a096548221
26
.github/workflows/sqlx.yml
vendored
26
.github/workflows/sqlx.yml
vendored
@ -231,6 +231,8 @@ jobs:
|
||||
|
||||
- run: |
|
||||
docker compose -f tests/docker-compose.yml run -d -p 5432:5432 --name postgres_${{ matrix.postgres }} postgres_${{ matrix.postgres }}
|
||||
|
||||
- run: |
|
||||
docker exec postgres_${{ matrix.postgres }} bash -c "until pg_isready; do sleep 1; done"
|
||||
|
||||
# Create data dir for offline mode
|
||||
@ -302,15 +304,31 @@ jobs:
|
||||
# but `PgLTree` should just fall back to text format
|
||||
RUSTFLAGS: --cfg postgres_${{ matrix.postgres }}
|
||||
|
||||
# client SSL authentication
|
||||
postgres-ssl-auth:
|
||||
name: Postgres SSL Auth
|
||||
runs-on: ubuntu-24.04
|
||||
strategy:
|
||||
matrix:
|
||||
postgres: [ 13, 17 ]
|
||||
runtime: [ async-std, tokio ]
|
||||
tls: [ native-tls, rustls-aws-lc-rs, rustls-ring ]
|
||||
needs: check
|
||||
timeout-minutes: 30
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Setup Rust
|
||||
run: rustup show active-toolchain || rustup toolchain install
|
||||
|
||||
- uses: Swatinem/rust-cache@v2
|
||||
|
||||
- run: |
|
||||
docker stop 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
|
||||
|
||||
- run: |
|
||||
docker exec postgres_${{ matrix.postgres }}_client_ssl bash -c "until pg_isready; do sleep 1; done"
|
||||
|
||||
- if: matrix.tls != 'none'
|
||||
run: >
|
||||
- run: >
|
||||
cargo test
|
||||
--no-default-features
|
||||
--features any,postgres,macros,_unstable-all-types,runtime-${{ matrix.runtime }},tls-${{ matrix.tls }}
|
||||
|
||||
@ -1,5 +1,3 @@
|
||||
version: "3"
|
||||
|
||||
services:
|
||||
#
|
||||
# MySQL 8.x, 5.7.x
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user