Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI testing versions #52

Merged
merged 3 commits into from
Oct 19, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,12 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
database: ["postgres", "spanner", "mysql", "mysql5", "mssql", "mongo", "firestore"]
database: ["postgres", "postgres13", "postgres12", "postgres11", "postgres10", "postgres9",
"spanner",
"mysql", "mysql5",
"mssql", "mssql17",
"mongo", "mongo4",
"firestore"]

steps:
- uses: actions/checkout@v2
Expand Down
9 changes: 8 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,19 @@
"test": "npm run test:core; npm run test:postgres; npm run test:spanner; npm run test:mysql; npm run test:mssql; npm run test:firestore; npm run test:mongo; npm run test:google-sheets",
"test:core": "lerna exec --scope '{external-db-config,velo-external-db-core,velo-external-db}' \"npm test\"",
"test:postgres": "lerna exec --scope external-db-postgres \"npm test\" && lerna exec --scope velo-external-db \"npm run test:postgres\"",
"test:postgres13": "npm run test:postgres",
"test:postgres12": "npm run test:postgres",
"test:postgres11": "npm run test:postgres",
"test:postgres10": "npm run test:postgres",
"test:postgres9": "npm run test:postgres",
"test:spanner": "lerna exec --scope external-db-spanner \"npm test\" && lerna exec --scope velo-external-db \"npm run test:spanner\"",
"test:mysql": "lerna exec --scope external-db-mysql \"npm test\" && lerna exec --scope velo-external-db \"npm run test:mysql\"",
"test:mysql5": "lerna exec --scope external-db-mysql \"npm test\" && lerna exec --scope velo-external-db \"npm run test:mysql\"",
"test:mysql5": "npm run test:mysql",
"test:mssql": "lerna exec --scope external-db-mssql \"npm test\" && lerna exec --scope velo-external-db \"npm run test:mssql\"",
"test:mssql17": "npm run test:mssql",
"test:firestore": "lerna exec --scope external-db-firestore \"npm test\" && lerna exec --scope velo-external-db \"npm run test:firestore\"",
"test:mongo": "lerna exec --scope external-db-mongo \"npm test\" && lerna exec --scope velo-external-db \"npm run test:mongo\"",
"test:mongo4": "npm run test:mongo",
"test:google-sheets": "lerna exec --scope external-db-google-sheets \"npm test\" && lerna exec --scope velo-external-db \"npm run test:google-sheets\"",
"release": "lerna version --no-push",
"outdated:all": "lerna exec --scope '{external-db-config,external-db-firestore,external-db-mongo,external-db-mssql,external-db-mysql,external-db-postgres,external-db-spanner,external-db-google-sheets,external-db-airtable,velo-external-db,velo-external-db-core}' \"npm outdated\"",
Expand Down
74 changes: 73 additions & 1 deletion packages/velo-external-db/test/resources/docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
version: "3.9"
services:
mssql:
image: mcr.microsoft.com/mssql/server:2019-latest
ports:
- 1433:1433
environment:
SA_PASSWORD: "t9D4:EHfU6Xgccs-"
ACCEPT_EULA: "Y"
networks:
- backend

mssql17:
image: mcr.microsoft.com/mssql/server:2017-latest
ports:
- 1433:1433
Expand Down Expand Up @@ -34,7 +44,57 @@ services:
- backend

postgres:
image: postgres
image: postgres:latest
restart: always
ports:
- 5432:5432
environment:
POSTGRES_USER: test-user
POSTGRES_PASSWORD: password
POSTGRES_DB: test-db

postgres13:
image: postgres:13
restart: always
ports:
- 5432:5432
environment:
POSTGRES_USER: test-user
POSTGRES_PASSWORD: password
POSTGRES_DB: test-db

postgres12:
image: postgres:12
restart: always
ports:
- 5432:5432
environment:
POSTGRES_USER: test-user
POSTGRES_PASSWORD: password
POSTGRES_DB: test-db

postgres11:
image: postgres:11
restart: always
ports:
- 5432:5432
environment:
POSTGRES_USER: test-user
POSTGRES_PASSWORD: password
POSTGRES_DB: test-db

postgres10:
image: postgres:10
restart: always
ports:
- 5432:5432
environment:
POSTGRES_USER: test-user
POSTGRES_PASSWORD: password
POSTGRES_DB: test-db

postgres9:
image: postgres:9
restart: always
ports:
- 5432:5432
Expand Down Expand Up @@ -83,6 +143,18 @@ services:
volumes:
- ./engines/init-mongo.js:/docker-entrypoint-initdb.d/init-mongo.js:ro

mongo4:
image: mongo:4
environment:
MONGO_INITDB_DATABASE: testdb
MONGO_INITDB_ROOT_USERNAME: root
MONGO_INITDB_ROOT_PASSWORD: pass
restart: always
ports:
- 27017:27017
volumes:
- ./engines/init-mongo.js:/docker-entrypoint-initdb.d/init-mongo.js:ro

networks:
backend:
driver: bridge