mirror of
https://github.com/dbgate/dbgate
synced 2024-11-21 23:39:46 +00:00
tests
This commit is contained in:
parent
e6a6534887
commit
55ad3a05e4
17
.github/workflows/integration-tests.yaml
vendored
17
.github/workflows/integration-tests.yaml
vendored
@ -23,12 +23,13 @@ jobs:
|
||||
- name: Run tests
|
||||
run: |
|
||||
cd integration-tests
|
||||
yarn run:all
|
||||
yarn wait
|
||||
yarn test
|
||||
|
||||
services:
|
||||
postgres:
|
||||
image: postgres
|
||||
environment:
|
||||
env:
|
||||
POSTGRES_PASSWORD: Pwd2020Db
|
||||
ports:
|
||||
- 15000:5432
|
||||
@ -38,17 +39,17 @@ jobs:
|
||||
command: --default-authentication-plugin=mysql_native_password
|
||||
ports:
|
||||
- 15001:3306
|
||||
environment:
|
||||
- MYSQL_ROOT_PASSWORD=Pwd2020Db
|
||||
env:
|
||||
MYSQL_ROOT_PASSWORD: Pwd2020Db
|
||||
|
||||
mssql:
|
||||
image: mcr.microsoft.com/mssql/server
|
||||
ports:
|
||||
- 15002:1433
|
||||
environment:
|
||||
- ACCEPT_EULA=Y
|
||||
- SA_PASSWORD=Pwd2020Db
|
||||
- MSSQL_PID=Express
|
||||
env:
|
||||
ACCEPT_EULA: Y
|
||||
SA_PASSWORD: Pwd2020Db
|
||||
MSSQL_PID: Express
|
||||
|
||||
cockroachdb:
|
||||
image: cockroachdb/cockroach
|
||||
|
@ -11,7 +11,7 @@
|
||||
"scripts": {
|
||||
"wait": "cross-env DEVMODE=1 node wait.js",
|
||||
"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": {
|
||||
"cross-env": "^7.0.3",
|
||||
|
Loading…
Reference in New Issue
Block a user