From 65c19d823743d4be9a671347c400f2cb6bb265d1 Mon Sep 17 00:00:00 2001 From: Rakshithb1 <79500257+Rakshithb1@users.noreply.github.com> Date: Fri, 24 Nov 2023 16:49:50 +0530 Subject: [PATCH] [MOSIP-29918] added db-test.yml (#168) Signed-off-by: Rakshithb1 --- .github/workflows/db-test.yml | 39 +++++++++++++++++++ .../deploy.properties | 2 +- 2 files changed, 40 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/db-test.yml diff --git a/.github/workflows/db-test.yml b/.github/workflows/db-test.yml new file mode 100644 index 00000000..c2360254 --- /dev/null +++ b/.github/workflows/db-test.yml @@ -0,0 +1,39 @@ +name: PostgreSQL Test + +on: + release: + types: [published] + pull_request: + types: [opened, reopened, synchronize] + paths: + - 'db_scripts/**' + workflow_dispatch: + inputs: + message: + description: 'Message for manually triggering' + required: false + default: 'Triggered for Updates' + type: string + push: + branches: + - '!release-branch' + - release* + - master + - 1.* + - develop* + - MOSIP* + paths: + - 'db_scripts/**' + +jobs: + build-db-test: + strategy: + matrix: + include: + - DB_LOCATION: 'db_scripts/mosip_mockidentitysystem' + DB_NAME: 'mosip_mockidentitysystem' + fail-fast: false + name: ${{ matrix.DB_NAME }} + uses: mosip/kattu/.github/workflows/db-test.yml@master + with: + DB_LOCATION: ${{ matrix.DB_LOCATION}} diff --git a/db_scripts/mosip_mockidentitysystem/deploy.properties b/db_scripts/mosip_mockidentitysystem/deploy.properties index 5e095cf9..787a3d4d 100644 --- a/db_scripts/mosip_mockidentitysystem/deploy.properties +++ b/db_scripts/mosip_mockidentitysystem/deploy.properties @@ -3,4 +3,4 @@ DB_PORT=5432 SU_USER=postgres DEFAULT_DB_NAME=postgres MOSIP_DB_NAME=mosip_mockidentitysystem -DML_FLAG=0 +DML_FLAG=1