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:
iamjpotts
2025-08-27 14:03:03 -04:00
committed by GitHub
parent 5d4e1a4d4d
commit c5037f1fca
2 changed files with 14 additions and 6 deletions

View File

@@ -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