Skip to content

Commit 44a1a03

Browse files
authored
Postgresql initial commit (#1)
* refactored changes * adding unit tests * adding action.yml
1 parent 5fc69a6 commit 44a1a03

21 files changed

+7439
-0
lines changed

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -348,3 +348,5 @@ MigrationBackup/
348348

349349
# Ionide (cross platform F# VS Code tools) working folder
350350
.ionide/
351+
node_modules
352+

action.yml

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# postgresql action
2+
name: 'Azure PostgreSQL Action'
3+
description: 'Deploy to Azure PostgreSQL database using SQL script files'
4+
inputs:
5+
#Only Azure PostgreSQL Server detail is required
6+
server-name:
7+
description: 'Server name of Azure DB for PostgreSQL. Example: fabrikam.postgres.database.azure.com'
8+
required: true
9+
connection-string:
10+
description: 'The connection string, including authentication information, for the Azure PostgreSQL Server. Please provide psql connection string. Example: psql "host={host} port={port} dbname={your_database} user={user} password={your_password} sslmode=require"'
11+
required: true
12+
plsql-file:
13+
description: 'Path to PL/SQL script file to deploy. To specify multiple files, use the regex syntax : *.sql or folder/x/<regex>.sql'
14+
required: true
15+
arguments:
16+
description: 'Additional options supported by postgresql simple SQL shell. These options will be applied when executing the given file on the Azure DB for Postgresql. In case of multiple files, the same args will be applied for all files'
17+
required: false
18+
runs:
19+
using: 'node12'
20+
main: 'lib/main.js'

jest.config.js

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
module.exports = {
2+
clearMocks: true,
3+
moduleFileExtensions: ['js', 'ts'],
4+
testEnvironment: 'node',
5+
testMatch: ['**/*.test.ts'],
6+
testRunner: 'jest-circus/runner',
7+
transform: {
8+
'^.+\\.ts$': 'ts-jest'
9+
},
10+
verbose: true
11+
};
12+

0 commit comments

Comments
 (0)