mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-28 15:16:00 +00:00
cypress tests
This commit is contained in:
40
.github/workflows/run-tests.yaml
vendored
40
.github/workflows/run-tests.yaml
vendored
@@ -22,6 +22,17 @@ jobs:
|
|||||||
- name: yarn install
|
- name: yarn install
|
||||||
run: |
|
run: |
|
||||||
yarn install
|
yarn install
|
||||||
|
- name: Build packer dist for cypress
|
||||||
|
run: |
|
||||||
|
yarn prepare:packer
|
||||||
|
- name: yarn install cypress
|
||||||
|
run: |
|
||||||
|
cd e2e-tests
|
||||||
|
yarn install
|
||||||
|
- name: Run Cypress tests
|
||||||
|
run: |
|
||||||
|
cd e2e-tests
|
||||||
|
yarn test:local
|
||||||
- name: Integration tests
|
- name: Integration tests
|
||||||
run: |
|
run: |
|
||||||
cd integration-tests
|
cd integration-tests
|
||||||
@@ -55,20 +66,20 @@ jobs:
|
|||||||
result-file: packages/datalib/result.json
|
result-file: packages/datalib/result.json
|
||||||
action-name: Datalib (perspectives) test results
|
action-name: Datalib (perspectives) test results
|
||||||
services:
|
services:
|
||||||
postgres:
|
postgres-integr:
|
||||||
image: postgres
|
image: postgres
|
||||||
env:
|
env:
|
||||||
POSTGRES_PASSWORD: Pwd2020Db
|
POSTGRES_PASSWORD: Pwd2020Db
|
||||||
options: '--health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5'
|
options: '--health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5'
|
||||||
ports:
|
ports:
|
||||||
- '15000:5432'
|
- '15000:5432'
|
||||||
mysql:
|
mysql-integr:
|
||||||
image: 'mysql:8.0.18'
|
image: 'mysql:8.0.18'
|
||||||
env:
|
env:
|
||||||
MYSQL_ROOT_PASSWORD: Pwd2020Db
|
MYSQL_ROOT_PASSWORD: Pwd2020Db
|
||||||
ports:
|
ports:
|
||||||
- '15001:3306'
|
- '15001:3306'
|
||||||
mssql:
|
mssql-integr:
|
||||||
image: mcr.microsoft.com/mssql/server
|
image: mcr.microsoft.com/mssql/server
|
||||||
env:
|
env:
|
||||||
ACCEPT_EULA: 'Y'
|
ACCEPT_EULA: 'Y'
|
||||||
@@ -76,21 +87,40 @@ jobs:
|
|||||||
MSSQL_PID: Express
|
MSSQL_PID: Express
|
||||||
ports:
|
ports:
|
||||||
- '15002:1433'
|
- '15002:1433'
|
||||||
clickhouse:
|
clickhouse-integr:
|
||||||
image: 'bitnami/clickhouse:24.8.4'
|
image: 'bitnami/clickhouse:24.8.4'
|
||||||
env:
|
env:
|
||||||
CLICKHOUSE_ADMIN_PASSWORD: Pwd2020Db
|
CLICKHOUSE_ADMIN_PASSWORD: Pwd2020Db
|
||||||
ports:
|
ports:
|
||||||
- '15005:8123'
|
- '15005:8123'
|
||||||
oracle:
|
oracle-integr:
|
||||||
image: 'gvenzl/oracle-xe:21-slim'
|
image: 'gvenzl/oracle-xe:21-slim'
|
||||||
env:
|
env:
|
||||||
ORACLE_PASSWORD: Pwd2020Db
|
ORACLE_PASSWORD: Pwd2020Db
|
||||||
ports:
|
ports:
|
||||||
- '15006:1521'
|
- '15006:1521'
|
||||||
|
postgres-cypress:
|
||||||
|
image: postgres
|
||||||
|
options: '--health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5'
|
||||||
|
environment:
|
||||||
|
POSTGRES_PASSWORD: Pwd2020Db
|
||||||
|
ports:
|
||||||
|
- '16000:5432'
|
||||||
|
mysql-cypress:
|
||||||
|
image: 'mysql:8.0.18'
|
||||||
|
ports:
|
||||||
|
- '16004:3306'
|
||||||
|
environment:
|
||||||
|
- MYSQL_ROOT_PASSWORD=Pwd2020Db
|
||||||
mysql-ssh-login:
|
mysql-ssh-login:
|
||||||
image: 'ghcr.io/dbgate/mysql-ssh-login:latest'
|
image: 'ghcr.io/dbgate/mysql-ssh-login:latest'
|
||||||
|
ports:
|
||||||
|
- 960382
|
||||||
mysql-ssh-keyfile:
|
mysql-ssh-keyfile:
|
||||||
image: 'ghcr.io/dbgate/mysql-ssh-keyfile:latest'
|
image: 'ghcr.io/dbgate/mysql-ssh-keyfile:latest'
|
||||||
|
ports:
|
||||||
|
- 960502
|
||||||
dex:
|
dex:
|
||||||
image: 'ghcr.io/dbgate/dex:latest'
|
image: 'ghcr.io/dbgate/dex:latest'
|
||||||
|
ports:
|
||||||
|
- '16009:5556'
|
||||||
|
|||||||
@@ -30,19 +30,19 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
yarn install
|
yarn install
|
||||||
|
|
||||||
# - name: Build packer dist for cypress
|
- name: Build packer dist for cypress
|
||||||
# run: |
|
run: |
|
||||||
# yarn prepare:packer
|
yarn prepare:packer
|
||||||
|
|
||||||
# - name: yarn install cypress
|
- name: yarn install cypress
|
||||||
# run: |
|
run: |
|
||||||
# cd e2e-tests
|
cd e2e-tests
|
||||||
# yarn install
|
yarn install
|
||||||
|
|
||||||
# - name: Run Cypress tests
|
- name: Run Cypress tests
|
||||||
# run: |
|
run: |
|
||||||
# cd e2e-tests
|
cd e2e-tests
|
||||||
# yarn test:ci
|
yarn test:local
|
||||||
|
|
||||||
- name: Integration tests
|
- name: Integration tests
|
||||||
run: |
|
run: |
|
||||||
@@ -83,7 +83,7 @@ jobs:
|
|||||||
action-name: Datalib (perspectives) test results
|
action-name: Datalib (perspectives) test results
|
||||||
|
|
||||||
services:
|
services:
|
||||||
postgres:
|
postgres-integr:
|
||||||
image: postgres
|
image: postgres
|
||||||
env:
|
env:
|
||||||
POSTGRES_PASSWORD: Pwd2020Db
|
POSTGRES_PASSWORD: Pwd2020Db
|
||||||
@@ -95,14 +95,14 @@ jobs:
|
|||||||
ports:
|
ports:
|
||||||
- 15000:5432
|
- 15000:5432
|
||||||
|
|
||||||
mysql:
|
mysql-integr:
|
||||||
image: mysql:8.0.18
|
image: mysql:8.0.18
|
||||||
env:
|
env:
|
||||||
MYSQL_ROOT_PASSWORD: Pwd2020Db
|
MYSQL_ROOT_PASSWORD: Pwd2020Db
|
||||||
ports:
|
ports:
|
||||||
- 15001:3306
|
- 15001:3306
|
||||||
|
|
||||||
mssql:
|
mssql-integr:
|
||||||
image: mcr.microsoft.com/mssql/server
|
image: mcr.microsoft.com/mssql/server
|
||||||
env:
|
env:
|
||||||
ACCEPT_EULA: Y
|
ACCEPT_EULA: Y
|
||||||
@@ -111,26 +111,51 @@ jobs:
|
|||||||
ports:
|
ports:
|
||||||
- 15002:1433
|
- 15002:1433
|
||||||
|
|
||||||
clickhouse:
|
clickhouse-integr:
|
||||||
image: bitnami/clickhouse:24.8.4
|
image: bitnami/clickhouse:24.8.4
|
||||||
env:
|
env:
|
||||||
CLICKHOUSE_ADMIN_PASSWORD: Pwd2020Db
|
CLICKHOUSE_ADMIN_PASSWORD: Pwd2020Db
|
||||||
ports:
|
ports:
|
||||||
- 15005:8123
|
- 15005:8123
|
||||||
|
|
||||||
oracle:
|
oracle-integr:
|
||||||
image: gvenzl/oracle-xe:21-slim
|
image: gvenzl/oracle-xe:21-slim
|
||||||
env:
|
env:
|
||||||
ORACLE_PASSWORD: Pwd2020Db
|
ORACLE_PASSWORD: Pwd2020Db
|
||||||
ports:
|
ports:
|
||||||
- 15006:1521
|
- 15006:1521
|
||||||
|
|
||||||
|
|
||||||
|
postgres-cypress:
|
||||||
|
image: postgres
|
||||||
|
options: >-
|
||||||
|
--health-cmd pg_isready
|
||||||
|
--health-interval 10s
|
||||||
|
--health-timeout 5s
|
||||||
|
--health-retries 5
|
||||||
|
environment:
|
||||||
|
POSTGRES_PASSWORD: Pwd2020Db
|
||||||
|
ports:
|
||||||
|
- 16000:5432
|
||||||
|
|
||||||
|
mysql-cypress:
|
||||||
|
image: mysql:8.0.18
|
||||||
|
ports:
|
||||||
|
- 16004:3306
|
||||||
|
environment:
|
||||||
|
- MYSQL_ROOT_PASSWORD=Pwd2020Db
|
||||||
|
|
||||||
mysql-ssh-login:
|
mysql-ssh-login:
|
||||||
image: ghcr.io/dbgate/mysql-ssh-login:latest
|
image: ghcr.io/dbgate/mysql-ssh-login:latest
|
||||||
|
ports:
|
||||||
|
- 16006:22
|
||||||
|
|
||||||
mysql-ssh-keyfile:
|
mysql-ssh-keyfile:
|
||||||
image: ghcr.io/dbgate/mysql-ssh-keyfile:latest
|
image: ghcr.io/dbgate/mysql-ssh-keyfile:latest
|
||||||
|
ports:
|
||||||
|
- 16008:22
|
||||||
|
|
||||||
dex:
|
dex:
|
||||||
image: ghcr.io/dbgate/dex:latest
|
image: ghcr.io/dbgate/dex:latest
|
||||||
|
ports:
|
||||||
|
- 16009:5556
|
||||||
|
|||||||
Reference in New Issue
Block a user