From b4e7a2fe7dc6c064fd56cfd104c93b35f2d84077 Mon Sep 17 00:00:00 2001 From: Austin Bonander Date: Thu, 15 Aug 2024 02:17:00 -0700 Subject: [PATCH] fix(ci): enable unit-tests for all relevant packages --- .github/workflows/sqlx.yml | 46 +++++++++++++++++++++++++++++++------- 1 file changed, 38 insertions(+), 8 deletions(-) diff --git a/.github/workflows/sqlx.yml b/.github/workflows/sqlx.yml index 04b0ae41..a7d93f5e 100644 --- a/.github/workflows/sqlx.yml +++ b/.github/workflows/sqlx.yml @@ -61,12 +61,8 @@ jobs: - run: cargo build --all-features test: - name: Unit Test + name: Unit Tests runs-on: ubuntu-22.04 - strategy: - matrix: - runtime: [async-std, tokio] - tls: [native-tls, rustls-aws-lc-rs, rustls-ring, none] steps: - uses: actions/checkout@v4 @@ -74,10 +70,44 @@ jobs: with: key: ${{ runner.os }}-test - - run: > + - name: Install Rust + run: rustup update + + - name: Test sqlx-core + run: > cargo test - --manifest-path sqlx-core/Cargo.toml - --features json,_rt-${{ matrix.runtime }},_tls-${{ matrix.tls }} + -p sqlx-core + --all-features + + - name: Test sqlx-mysql + run: > + cargo test + -p sqlx-mysql + --all-features + + - name: Test sqlx-postgres + run: > + cargo test + -p sqlx-postgres + --all-features + + - name: Test sqlx-sqlite + run: > + cargo test + -p sqlx-sqlite + --all-features + + - name: Test sqlx-macros-core + run: > + cargo test + -p sqlx-macros-core + --all-features + + - name: Test sqlx + run: > + cargo test + -p sqlx + --all-features sqlite: name: SQLite