From 83afa4a68123f977fbe1df29d785e68ab3a29202 Mon Sep 17 00:00:00 2001 From: Rakshithb1 Date: Tue, 14 Nov 2023 12:14:15 +0530 Subject: [PATCH 1/3] [MOSIP-29918] added db-test.yml Signed-off-by: Rakshithb1 --- .github/workflows/db-test.yml | 41 +++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) 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 00000000000..974cce0eb47 --- /dev/null +++ b/.github/workflows/db-test.yml @@ -0,0 +1,41 @@ +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_hotlist' + DB_NAME: 'mosip_hotlist' + - DB_LOCATION: 'db_scripts/mosip_master' + DB_NAME: 'mosip_master' + fail-fast: false + name: ${{ matrix.DB_NAME }} + uses: mosip/kattu/.github/workflows/db-test.yml@master + with: + DB_LOCATION: ${{ matrix.DB_LOCATION}} From 1963dd2b8f7b3f8c90400e5fd5845bdb94daab42 Mon Sep 17 00:00:00 2001 From: Rakshithb1 Date: Tue, 14 Nov 2023 13:01:23 +0530 Subject: [PATCH 2/3] [MOSIP-29918] added db-test.yml Signed-off-by: Rakshithb1 --- .github/workflows/db-test.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/db-test.yml b/.github/workflows/db-test.yml index 974cce0eb47..dd31067dbbc 100644 --- a/.github/workflows/db-test.yml +++ b/.github/workflows/db-test.yml @@ -5,8 +5,7 @@ on: types: [published] pull_request: types: [opened, reopened, synchronize] - paths: - - 'db_scripts/**' + workflow_dispatch: inputs: message: @@ -22,8 +21,7 @@ on: - 1.* - develop* - MOSIP* - paths: - - 'db_scripts/**' + jobs: build-db-test: From a286484ba2343074680c1040d25974c0d7f706c4 Mon Sep 17 00:00:00 2001 From: Rakshithb1 Date: Tue, 14 Nov 2023 13:03:15 +0530 Subject: [PATCH 3/3] [MOSIP-29918] added db-test.yml Signed-off-by: Rakshithb1 --- .github/workflows/db-test.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/db-test.yml b/.github/workflows/db-test.yml index dd31067dbbc..974cce0eb47 100644 --- a/.github/workflows/db-test.yml +++ b/.github/workflows/db-test.yml @@ -5,7 +5,8 @@ on: types: [published] pull_request: types: [opened, reopened, synchronize] - + paths: + - 'db_scripts/**' workflow_dispatch: inputs: message: @@ -21,7 +22,8 @@ on: - 1.* - develop* - MOSIP* - + paths: + - 'db_scripts/**' jobs: build-db-test: