Fix migrate! and add migration test

This commit is contained in:
Raphaël Thériault
2020-07-23 17:46:27 -04:00
parent 39b3e4a966
commit 92646e00b8
9 changed files with 61 additions and 32 deletions

View File

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