mirror of
https://github.com/launchbadge/sqlx.git
synced 2026-03-27 13:46:32 +00:00
Fix migrate! and add migration test
This commit is contained in:
14
.github/workflows/sqlx.yml
vendored
14
.github/workflows/sqlx.yml
vendored
@@ -48,14 +48,14 @@ jobs:
|
||||
args: >
|
||||
--manifest-path sqlx-core/Cargo.toml
|
||||
--no-default-features
|
||||
--features offline,all-databases,all-types,runtime-${{ matrix.runtime }}
|
||||
--features offline,all-databases,all-types,migrate,runtime-${{ matrix.runtime }}
|
||||
|
||||
- uses: actions-rs/cargo@v1
|
||||
with:
|
||||
command: check
|
||||
args: >
|
||||
--no-default-features
|
||||
--features offline,all-databases,all-types,runtime-${{ matrix.runtime }},macros
|
||||
--features offline,all-databases,all-types,migrate,runtime-${{ matrix.runtime }},macros
|
||||
|
||||
test:
|
||||
name: Unit Test
|
||||
@@ -97,7 +97,7 @@ jobs:
|
||||
command: test
|
||||
args: >
|
||||
--no-default-features
|
||||
--features any,macros,sqlite,all-types,runtime-${{ matrix.runtime }}
|
||||
--features any,macros,migrate,sqlite,all-types,runtime-${{ matrix.runtime }}
|
||||
--
|
||||
--test-threads=1
|
||||
env:
|
||||
@@ -143,7 +143,7 @@ jobs:
|
||||
command: test
|
||||
args: >
|
||||
--no-default-features
|
||||
--features any,postgres,macros,all-types,runtime-${{ matrix.runtime }}
|
||||
--features any,postgres,macros,migrate,all-types,runtime-${{ matrix.runtime }}
|
||||
env:
|
||||
DATABASE_URL: postgres://postgres:password@localhost:5432/sqlx?sslmode=verify-ca&sslrootcert=.%2Ftests%2Fcerts%2Fca.crt
|
||||
|
||||
@@ -178,7 +178,7 @@ jobs:
|
||||
command: test
|
||||
args: >
|
||||
--no-default-features
|
||||
--features any,mysql,macros,all-types,runtime-${{ matrix.runtime }}
|
||||
--features any,mysql,macros,migrate,all-types,runtime-${{ matrix.runtime }}
|
||||
env:
|
||||
DATABASE_URL: mysql://root:password@localhost:3306/sqlx
|
||||
|
||||
@@ -213,7 +213,7 @@ jobs:
|
||||
command: test
|
||||
args: >
|
||||
--no-default-features
|
||||
--features any,mysql,macros,all-types,runtime-${{ matrix.runtime }}
|
||||
--features any,mysql,macros,migrate,all-types,runtime-${{ matrix.runtime }}
|
||||
env:
|
||||
DATABASE_URL: mysql://root:password@localhost:3306/sqlx
|
||||
|
||||
@@ -248,6 +248,6 @@ jobs:
|
||||
command: test
|
||||
args: >
|
||||
--no-default-features
|
||||
--features any,mssql,macros,all-types,runtime-${{ matrix.runtime }}
|
||||
--features any,mssql,macros,migrate,all-types,runtime-${{ matrix.runtime }}
|
||||
env:
|
||||
DATABASE_URL: mssql://sa:Password123!@localhost/sqlx
|
||||
|
||||
Reference in New Issue
Block a user