From 3b5b17932f286d30738d19462237633d49296fa2 Mon Sep 17 00:00:00 2001 From: Rakshithb1 Date: Tue, 14 Nov 2023 19:52:25 +0530 Subject: [PATCH] [MOSIP-29918] added db-test.yml 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