From 0beacbd9c9373e911426df390974c9725513c4c3 Mon Sep 17 00:00:00 2001 From: Rakshithb1 Date: Wed, 8 Nov 2023 21:01:28 +0530 Subject: [PATCH 1/2] [MOSIP-29918] add db-test.yml Signed-off-by: Rakshithb1 --- .github/workflows/db-test.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 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..78c67134f62 --- /dev/null +++ b/.github/workflows/db-test.yml @@ -0,0 +1,32 @@ +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: + uses: mosip/kattu/.github/workflows/db-test.yml@master + with: + DB_LOCATION: ./db_scripts/mosip_ida From 9454f8aa7a9ee8b8dad52781e95191ea31ee0a9b Mon Sep 17 00:00:00 2001 From: Rakshithb1 Date: Tue, 14 Nov 2023 15:30:34 +0530 Subject: [PATCH 2/2] [MOSIP-29918] updated db-test.yml Signed-off-by: Rakshithb1 --- .github/workflows/db-test.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/db-test.yml b/.github/workflows/db-test.yml index 78c67134f62..f9774272b66 100644 --- a/.github/workflows/db-test.yml +++ b/.github/workflows/db-test.yml @@ -27,6 +27,13 @@ on: jobs: build-db-test: + strategy: + matrix: + include: + - DB_LOCATION: 'db_scripts/mosip_ida' + DB_NAME: 'mosip_ida' + fail-fast: false + name: ${{ matrix.DB_NAME }} uses: mosip/kattu/.github/workflows/db-test.yml@master with: - DB_LOCATION: ./db_scripts/mosip_ida + DB_LOCATION: ${{ matrix.DB_LOCATION}}