mirror of
https://github.com/launchbadge/sqlx.git
synced 2026-03-23 10:38:57 +00:00
chore(deps): Resolve deprecation warning for chrono Date and ymd methods (#3987)
* chore(deps): Resolve deprecation warning for chrono Date and ymd methods Signed-off-by: Joshua Potts <8704475+iamjpotts@users.noreply.github.com> * chore(ci): Fail postgres tests if compiling them generates warnings Signed-off-by: Joshua Potts <8704475+iamjpotts@users.noreply.github.com> --------- Signed-off-by: Joshua Potts <8704475+iamjpotts@users.noreply.github.com>
This commit is contained in:
10
.github/workflows/sqlx.yml
vendored
10
.github/workflows/sqlx.yml
vendored
@@ -243,7 +243,7 @@ jobs:
|
||||
env:
|
||||
DATABASE_URL: postgres://postgres:password@localhost:5432/sqlx
|
||||
SQLX_OFFLINE_DIR: .sqlx
|
||||
RUSTFLAGS: --cfg postgres="${{ matrix.postgres }}"
|
||||
RUSTFLAGS: -D warnings --cfg postgres="${{ matrix.postgres }}"
|
||||
|
||||
# Run the `test-attr` test again to cover cleanup.
|
||||
- run: >
|
||||
@@ -254,7 +254,7 @@ jobs:
|
||||
env:
|
||||
DATABASE_URL: postgres://postgres:password@localhost:5432/sqlx
|
||||
SQLX_OFFLINE_DIR: .sqlx
|
||||
RUSTFLAGS: --cfg postgres="${{ matrix.postgres }}"
|
||||
RUSTFLAGS: -D warnings --cfg postgres="${{ matrix.postgres }}"
|
||||
|
||||
- if: matrix.tls != 'none'
|
||||
run: >
|
||||
@@ -264,7 +264,7 @@ jobs:
|
||||
env:
|
||||
DATABASE_URL: postgres://postgres:password@localhost:5432/sqlx?sslmode=verify-ca&sslrootcert=.%2Ftests%2Fcerts%2Fca.crt
|
||||
SQLX_OFFLINE_DIR: .sqlx
|
||||
RUSTFLAGS: --cfg postgres="${{ matrix.postgres }}"
|
||||
RUSTFLAGS: -D warnings --cfg postgres="${{ matrix.postgres }}"
|
||||
|
||||
# Remove test artifacts
|
||||
- run: cargo clean -p sqlx
|
||||
@@ -290,7 +290,7 @@ jobs:
|
||||
DATABASE_URL: postgres://postgres:password@localhost:5432/sqlx
|
||||
SQLX_OFFLINE: true
|
||||
SQLX_OFFLINE_DIR: .sqlx
|
||||
RUSTFLAGS: --cfg postgres="${{ matrix.postgres }}"
|
||||
RUSTFLAGS: -D warnings --cfg postgres="${{ matrix.postgres }}"
|
||||
|
||||
postgres-ssl-auth:
|
||||
name: Postgres SSL Auth
|
||||
@@ -322,7 +322,7 @@ jobs:
|
||||
--features any,postgres,macros,_unstable-all-types,runtime-${{ matrix.runtime }},tls-${{ matrix.tls }}
|
||||
env:
|
||||
DATABASE_URL: postgres://postgres@localhost:5432/sqlx?sslmode=verify-ca&sslrootcert=.%2Ftests%2Fcerts%2Fca.crt&sslkey=.%2Ftests%2Fcerts%2Fkeys%2Fclient.key&sslcert=.%2Ftests%2Fcerts%2Fclient.crt
|
||||
RUSTFLAGS: --cfg postgres="${{ matrix.postgres }}"
|
||||
RUSTFLAGS: -D warnings --cfg postgres="${{ matrix.postgres }}"
|
||||
|
||||
mysql:
|
||||
name: MySQL
|
||||
|
||||
Reference in New Issue
Block a user