mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-24 22:16:00 +00:00
tests
This commit is contained in:
17
.github/workflows/integration-tests.yaml
vendored
17
.github/workflows/integration-tests.yaml
vendored
@@ -23,12 +23,13 @@ jobs:
|
|||||||
- name: Run tests
|
- name: Run tests
|
||||||
run: |
|
run: |
|
||||||
cd integration-tests
|
cd integration-tests
|
||||||
yarn run:all
|
yarn wait
|
||||||
|
yarn test
|
||||||
|
|
||||||
services:
|
services:
|
||||||
postgres:
|
postgres:
|
||||||
image: postgres
|
image: postgres
|
||||||
environment:
|
env:
|
||||||
POSTGRES_PASSWORD: Pwd2020Db
|
POSTGRES_PASSWORD: Pwd2020Db
|
||||||
ports:
|
ports:
|
||||||
- 15000:5432
|
- 15000:5432
|
||||||
@@ -38,17 +39,17 @@ jobs:
|
|||||||
command: --default-authentication-plugin=mysql_native_password
|
command: --default-authentication-plugin=mysql_native_password
|
||||||
ports:
|
ports:
|
||||||
- 15001:3306
|
- 15001:3306
|
||||||
environment:
|
env:
|
||||||
- MYSQL_ROOT_PASSWORD=Pwd2020Db
|
MYSQL_ROOT_PASSWORD: Pwd2020Db
|
||||||
|
|
||||||
mssql:
|
mssql:
|
||||||
image: mcr.microsoft.com/mssql/server
|
image: mcr.microsoft.com/mssql/server
|
||||||
ports:
|
ports:
|
||||||
- 15002:1433
|
- 15002:1433
|
||||||
environment:
|
env:
|
||||||
- ACCEPT_EULA=Y
|
ACCEPT_EULA: Y
|
||||||
- SA_PASSWORD=Pwd2020Db
|
SA_PASSWORD: Pwd2020Db
|
||||||
- MSSQL_PID=Express
|
MSSQL_PID: Express
|
||||||
|
|
||||||
cockroachdb:
|
cockroachdb:
|
||||||
image: cockroachdb/cockroach
|
image: cockroachdb/cockroach
|
||||||
|
|||||||
@@ -11,7 +11,7 @@
|
|||||||
"scripts": {
|
"scripts": {
|
||||||
"wait": "cross-env DEVMODE=1 node wait.js",
|
"wait": "cross-env DEVMODE=1 node wait.js",
|
||||||
"test": "cross-env DEVMODE=1 jest --runInBand",
|
"test": "cross-env DEVMODE=1 jest --runInBand",
|
||||||
"run:all": "docker-compose down && docker-compose up -d && yarn wait && yarn test"
|
"run:local": "docker-compose down && docker-compose up -d && yarn wait && yarn test"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"cross-env": "^7.0.3",
|
"cross-env": "^7.0.3",
|
||||||
|
|||||||
Reference in New Issue
Block a user