Skip to content

Commit 054f619

Browse files
authored
feat: implement testing utilities (launchbadge#2001)
1 parent 7adbb7f commit 054f619

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

74 files changed

+3701
-236
lines changed

.github/workflows/sqlx.yml

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ jobs:
170170
runs-on: ubuntu-20.04
171171
strategy:
172172
matrix:
173-
postgres: [14, 9_6]
173+
postgres: [14, 10]
174174
runtime: [async-std, tokio, actix]
175175
tls: [native-tls, rustls]
176176
needs: check
@@ -230,7 +230,7 @@ jobs:
230230
runs-on: ubuntu-20.04
231231
strategy:
232232
matrix:
233-
mysql: [8, 5_6]
233+
mysql: [8, 5_7]
234234
runtime: [async-std, tokio, actix]
235235
tls: [native-tls, rustls]
236236
needs: check
@@ -257,6 +257,17 @@ jobs:
257257
- run: sleep 60
258258

259259
- uses: actions-rs/cargo@v1
260+
with:
261+
command: test
262+
args: >
263+
--no-default-features
264+
--features any,mysql,macros,migrate,all-types,runtime-${{ matrix.runtime }}-${{ matrix.tls }}
265+
env:
266+
DATABASE_URL: mysql://root:password@localhost:3306/sqlx?ssl-mode=disabled
267+
268+
# MySQL 5.7 supports TLS but not TLSv1.3 as required by RusTLS.
269+
- uses: actions-rs/cargo@v1
270+
if: ${{ !(matrix.mysql == '5_7' && matrix.tls == 'rustls') }}
260271
with:
261272
command: test
262273
args: >
@@ -270,7 +281,7 @@ jobs:
270281
runs-on: ubuntu-20.04
271282
strategy:
272283
matrix:
273-
mariadb: [10_6, 10_2]
284+
mariadb: [10_6, 10_3]
274285
runtime: [async-std, tokio, actix]
275286
tls: [native-tls, rustls]
276287
needs: check

0 commit comments

Comments
 (0)