-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Brijesh
committed
Feb 28, 2024
1 parent
27791ab
commit a090634
Showing
254 changed files
with
7,461 additions
and
6,385 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 |
---|---|---|
@@ -1,48 +1,45 @@ | ||
name: Node CI | ||
on: | ||
|
||
pull_request: | ||
branches: | ||
- dev | ||
- master | ||
|
||
- dev | ||
- master | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
matrix: | ||
node-version: [10.x] | ||
node-version: [10.x] | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
- name: npm install, build, and test | ||
env: | ||
POSTGRESQL_DATABASE: myra | ||
POSTGRESQL_DATABASE_TEST: myra_test | ||
POSTGRESQL_HOST: db | ||
POSTGRESQL_PORT: 5432 | ||
|
||
PROJECT: myra_range | ||
ENVIRONMENT: development | ||
API_PORT: 8080 | ||
BUILD_TARGET: base | ||
|
||
POSTGRESQL_PASSWORD: banana | ||
POSTGRESQL_USER: app_dv_myra | ||
SSO_URL: https://sso-dev.pathfinder.gov.bc.ca/auth/realms/range/protocol/openid-connect | ||
|
||
CI: true | ||
run: | | ||
echo "$(printenv)" > .env | ||
npm ci | ||
make local-test-setup | ||
make run-db-test | ||
make local-test | ||
- uses: actions/checkout@v2 | ||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
- name: npm install, build, and test | ||
env: | ||
POSTGRESQL_DATABASE: myra | ||
POSTGRESQL_DATABASE_TEST: myra_test | ||
POSTGRESQL_HOST: db | ||
POSTGRESQL_PORT: 5432 | ||
|
||
PROJECT: myra_range | ||
ENVIRONMENT: development | ||
API_PORT: 8080 | ||
BUILD_TARGET: base | ||
|
||
POSTGRESQL_PASSWORD: banana | ||
POSTGRESQL_USER: app_dv_myra | ||
|
||
SSO_URL: https://sso-dev.pathfinder.gov.bc.ca/auth/realms/range/protocol/openid-connect | ||
|
||
CI: true | ||
run: | | ||
echo "$(printenv)" > .env | ||
npm ci | ||
make local-test-setup | ||
make run-db-test | ||
make local-test |
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,4 @@ | ||
/node_modules | ||
/openshift | ||
/build | ||
/sonar-runner |
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,21 @@ | ||
{ | ||
"arrowParens": "always", | ||
"bracketSameLine": false, | ||
"bracketSpacing": true, | ||
"semi": true, | ||
"experimentalTernaries": false, | ||
"singleQuote": true, | ||
"jsxSingleQuote": false, | ||
"quoteProps": "as-needed", | ||
"trailingComma": "all", | ||
"singleAttributePerLine": false, | ||
"htmlWhitespaceSensitivity": "css", | ||
"vueIndentScriptAndStyle": false, | ||
"proseWrap": "preserve", | ||
"insertPragma": false, | ||
"printWidth": 80, | ||
"requirePragma": false, | ||
"tabWidth": 2, | ||
"useTabs": false, | ||
"embeddedLanguageFormatting": "auto" | ||
} |
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,28 +1,28 @@ | ||
{ | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"type": "node", | ||
"request": "attach", | ||
"name": "Attach to Process", | ||
"processId": "${command:PickProcess}", | ||
"restart": true, | ||
"protocol": "inspector", | ||
"port": 9229, | ||
"sourceMaps": true, | ||
"outFiles": ["${workspaceFolder}/build"] | ||
}, | ||
{ | ||
"type": "node", | ||
"request": "attach", | ||
"name": "Remote", | ||
"restart": false, | ||
"protocol": "inspector", | ||
"port": 9229, | ||
"address": "localhost", | ||
"sourceMaps": true, | ||
"localRoot": "${workspaceRoot}", | ||
"remoteRoot": "/home/nodejs/app/src/", | ||
}, | ||
] | ||
} | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"type": "node", | ||
"request": "attach", | ||
"name": "Attach to Process", | ||
"processId": "${command:PickProcess}", | ||
"restart": true, | ||
"protocol": "inspector", | ||
"port": 9229, | ||
"sourceMaps": true, | ||
"outFiles": ["${workspaceFolder}/build"] | ||
}, | ||
{ | ||
"type": "node", | ||
"request": "attach", | ||
"name": "Remote", | ||
"restart": false, | ||
"protocol": "inspector", | ||
"port": 9229, | ||
"address": "localhost", | ||
"sourceMaps": true, | ||
"localRoot": "${workspaceRoot}", | ||
"remoteRoot": "/home/nodejs/app/src/" | ||
} | ||
] | ||
} |
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,14 +1,6 @@ | ||
{ | ||
"editor.tabSize": 2, | ||
"editor.wordWrap": "on", | ||
"cSpell.words": [ | ||
"all", | ||
"eagerload", | ||
"except", | ||
"many", | ||
"one", | ||
"plan", | ||
"to" | ||
], | ||
"editor.formatOnSave": false | ||
} | ||
"editor.tabSize": 2, | ||
"editor.wordWrap": "on", | ||
"cSpell.words": ["all", "eagerload", "except", "many", "one", "plan", "to"], | ||
"editor.formatOnSave": false | ||
} |
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,12 +1,12 @@ | ||
{ | ||
// See https://go.microsoft.com/fwlink/?LinkId=733558 | ||
// for the documentation about the tasks.json format | ||
"version": "2.0.0", | ||
"tasks": [ | ||
{ | ||
"taskName": "build", | ||
"type": "shell", | ||
"command": "npm run build" | ||
} | ||
] | ||
} | ||
// See https://go.microsoft.com/fwlink/?LinkId=733558 | ||
// for the documentation about the tasks.json format | ||
"version": "2.0.0", | ||
"tasks": [ | ||
{ | ||
"taskName": "build", | ||
"type": "shell", | ||
"command": "npm run build" | ||
} | ||
] | ||
} |
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
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
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 |
---|---|---|
|
@@ -4,4 +4,4 @@ | |
"category_id": 2, | ||
"detail": "Details here" | ||
} | ||
] | ||
] |
Oops, something went wrong.