11
11
name : Format
12
12
runs-on : ubuntu-22.04
13
13
steps :
14
- - uses : actions/checkout@v3
14
+ - uses : actions/checkout@v4
15
15
- run : cargo fmt --all -- --check
16
16
17
17
check :
22
22
runtime : [async-std, tokio, actix]
23
23
tls : [native-tls, rustls]
24
24
steps :
25
- - uses : actions/checkout@v3
26
- - uses : Swatinem/rust-cache@dd05243424bd5c0e585e4b55eb2d7615cdd32f1f
25
+ - uses : actions/checkout@v4
26
+ - uses : Swatinem/rust-cache@v2
27
27
- run :
28
28
cargo check
29
29
--manifest-path sqlx-core/Cargo.toml
51
51
rustls
52
52
]
53
53
steps :
54
- - uses : actions/checkout@v3
54
+ - uses : actions/checkout@v4
55
55
- uses : Swatinem/rust-cache@v2
56
56
- run :
57
57
cargo test
79
79
# bin: target/debug/cargo-sqlx
80
80
81
81
steps :
82
- - uses : actions/checkout@v3
82
+ - uses : actions/checkout@v4
83
83
- uses : Swatinem/rust-cache@v2
84
84
- run :
85
85
cargo build
@@ -101,7 +101,7 @@ jobs:
101
101
tls : [native-tls, rustls]
102
102
needs : check
103
103
steps :
104
- - uses : actions/checkout@v3
104
+ - uses : actions/checkout@v4
105
105
- run : mkdir /tmp/sqlite3-lib && wget -O /tmp/sqlite3-lib/ipaddr.so https://github.com/nalgeon/sqlean/releases/download/0.15.2/ipaddr.so
106
106
- uses : Swatinem/rust-cache@v2
107
107
- run :
@@ -125,7 +125,7 @@ jobs:
125
125
tls : [native-tls, rustls]
126
126
needs : check
127
127
steps :
128
- - uses : actions/checkout@v3
128
+ - uses : actions/checkout@v4
129
129
130
130
- uses : actions-rs/toolchain@v1
131
131
with :
@@ -170,11 +170,26 @@ jobs:
170
170
--no-default-features
171
171
--features any,postgres,macros,migrate,all-types,runtime-${{ matrix.runtime }}-${{ matrix.tls }}
172
172
env :
173
- DATABASE_URL : postgres://postgres:password@localhost:5432/sqlx?sslmode=verify-ca&sslrootcert=.%2Ftests%2Fcerts%2Fca .crt
173
+ DATABASE_URL : postgres://postgres:password@localhost:5432/sqlx?sslmode=verify-ca&sslrootcert=./tests/certs/ca .crt
174
174
# FIXME: needed to disable `ltree` tests in Postgres 9.6
175
175
# but `PgLTree` should just fall back to text format
176
176
RUSTFLAGS : --cfg postgres_${{ matrix.postgres }}
177
177
178
+ postgres_ssl_client_cert :
179
+ name : Postgres with SSL client cert
180
+ runs-on : ubuntu-22.04
181
+ needs : check
182
+ steps :
183
+ - uses : actions/checkout@v4
184
+ - uses : Swatinem/rust-cache@v2
185
+ with :
186
+ key : linux-postgres-ssl-client-cert
187
+ - run : docker compose up --wait postgres_16
188
+ working-directory : tests
189
+ - run : cargo test --no-default-features --features any,postgres,macros,all-types,runtime-actix-rustls
190
+ env :
191
+ DATABASE_URL : postgres://postgres@localhost:5432/sqlx?sslmode=verify-ca&sslrootcert=./tests/certs/ca.crt&sslcert=./tests/certs/client.crt&sslkey=./tests/keys/client.key
192
+
178
193
mysql :
179
194
name : MySQL
180
195
runs-on : ubuntu-22.04
@@ -185,7 +200,7 @@ jobs:
185
200
tls : [native-tls, rustls]
186
201
needs : check
187
202
steps :
188
- - uses : actions/checkout@v3
203
+ - uses : actions/checkout@v4
189
204
190
205
- uses : actions-rs/toolchain@v1
191
206
with :
@@ -236,7 +251,7 @@ jobs:
236
251
tls : [native-tls, rustls]
237
252
needs : check
238
253
steps :
239
- - uses : actions/checkout@v3
254
+ - uses : actions/checkout@v4
240
255
241
256
- uses : actions-rs/toolchain@v1
242
257
with :
@@ -276,7 +291,7 @@ jobs:
276
291
tls : [native-tls, rustls]
277
292
needs : check
278
293
steps :
279
- - uses : actions/checkout@v3
294
+ - uses : actions/checkout@v4
280
295
281
296
- uses : actions-rs/toolchain@v1
282
297
with :
0 commit comments