Skip to content

Commit

Permalink
feat: implement testing utilities (#2001)
Browse files Browse the repository at this point in the history
  • Loading branch information
abonander authored Aug 2, 2022
1 parent 7adbb7f commit 054f619
Show file tree
Hide file tree
Showing 74 changed files with 3,701 additions and 236 deletions.
17 changes: 14 additions & 3 deletions .github/workflows/sqlx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ jobs:
runs-on: ubuntu-20.04
strategy:
matrix:
postgres: [14, 9_6]
postgres: [14, 10]
runtime: [async-std, tokio, actix]
tls: [native-tls, rustls]
needs: check
Expand Down Expand Up @@ -230,7 +230,7 @@ jobs:
runs-on: ubuntu-20.04
strategy:
matrix:
mysql: [8, 5_6]
mysql: [8, 5_7]
runtime: [async-std, tokio, actix]
tls: [native-tls, rustls]
needs: check
Expand All @@ -257,6 +257,17 @@ jobs:
- run: sleep 60

- uses: actions-rs/cargo@v1
with:
command: test
args: >
--no-default-features
--features any,mysql,macros,migrate,all-types,runtime-${{ matrix.runtime }}-${{ matrix.tls }}
env:
DATABASE_URL: mysql://root:password@localhost:3306/sqlx?ssl-mode=disabled

# MySQL 5.7 supports TLS but not TLSv1.3 as required by RusTLS.
- uses: actions-rs/cargo@v1
if: ${{ !(matrix.mysql == '5_7' && matrix.tls == 'rustls') }}
with:
command: test
args: >
Expand All @@ -270,7 +281,7 @@ jobs:
runs-on: ubuntu-20.04
strategy:
matrix:
mariadb: [10_6, 10_2]
mariadb: [10_6, 10_3]
runtime: [async-std, tokio, actix]
tls: [native-tls, rustls]
needs: check
Expand Down
Loading

0 comments on commit 054f619

Please sign in to comment.