-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[MOSIP-29918] added db-test.yml and updated grants.sql (#66)
* [MOSIP-29918] added db-test.yml (#64) Signed-off-by: Rakshithb1 <[email protected]> * [MOSIP-29918] added db-test.yml and updated grants.sql Signed-off-by: Rakshithb1 <[email protected]> * [MOSIP-29918] updated grants.sql Signed-off-by: Rakshithb1 <[email protected]> --------- Signed-off-by: Rakshithb1 <[email protected]>
- Loading branch information
1 parent
cfdaae7
commit 2f54e14
Showing
2 changed files
with
42 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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_digitalcard' | ||
DB_NAME: 'mosip_digitalcard' | ||
fail-fast: false | ||
name: ${{ matrix.DB_NAME }} | ||
uses: mosip/kattu/.github/workflows/db-test.yml@master | ||
with: | ||
DB_LOCATION: ${{ matrix.DB_LOCATION}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
\c mosip_digitalcard | ||
|
||
|
||
GRANT CONNECT | ||
ON DATABASE mosip_digitalcard | ||
TO digitalcarduser; | ||
|