-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[IOPAY-402] update node 14 & fp-ts #320
Changes from 20 commits
80ad603
08d50b8
cbaa0e3
3350575
ada2eec
2fde682
78950bc
c3462e4
bd7445a
f6d9c8a
7ff3ca3
7020ed1
d7cae9f
cdbc9bd
7504ed7
5255244
7d83ff9
674aa38
fa5bc0d
7eb685f
5923023
40ac0f8
b4421d6
5660591
7be7c0b
ee52e47
d7a487c
f7d9655
bf0bba3
5036605
0a7f486
33e5e0d
4584671
7f7fed5
49ff741
9db7035
eacbf0a
bf487e0
cfd95ce
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,7 +18,7 @@ parameters: | |
- prod | ||
|
||
variables: | ||
NODE_VERSION: '8.9.4' | ||
NODE_VERSION: '14.16.0' | ||
YARN_CACHE_FOLDER: $(Pipeline.Workspace)/.yarn | ||
ENV: ${{ parameters.ENV }} | ||
|
||
|
@@ -154,7 +154,40 @@ stages: | |
package: '$(Pipeline.Workspace)/Bundle' | ||
deploymentMethod: 'auto' | ||
displayName: Deploy to production slot | ||
|
||
|
||
- stage: Api_test | ||
dependsOn: | ||
- Deploy_test | ||
jobs: | ||
- job: 'TestAPI' | ||
steps: | ||
- checkout: none | ||
|
||
- download: current | ||
artifact: Bundle | ||
|
||
- job: waitStartup | ||
steps: | ||
- task: Delay@1 | ||
inputs: | ||
delayForMinutes: '5' | ||
|
||
- job: integrationTests | ||
dependsOn: waitStartup | ||
steps: | ||
- script: | | ||
yarn global add newman | ||
displayName: 'newman installation' | ||
|
||
- task: Bash@3 | ||
inputs: | ||
targetType: filePath | ||
filePath: k6example/ws.sh | ||
arguments: postman | ||
workingDirectory: k6example | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. could be better to rename |
||
failOnStdErr: true | ||
displayName: Run API tests | ||
|
||
- stage: Deploy_production | ||
dependsOn: | ||
- Prepare_artifact | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
module.exports = { | ||
"env": { | ||
"es6": true, | ||
"node": true | ||
}, | ||
"ignorePatterns": [ | ||
"node_modules", | ||
"generated", | ||
"**/__tests__/*", | ||
"**/__mocks__/*", | ||
"*.d.ts", | ||
"*.js", | ||
"Dangerfile.ts", | ||
"**/__integration__/*" | ||
], | ||
"parser": "@typescript-eslint/parser", | ||
"parserOptions": { | ||
"project": "./tsconfig.json", | ||
"sourceType": "module" | ||
}, | ||
"extends": [ | ||
"@pagopa/eslint-config/strong", | ||
], | ||
"rules": {} | ||
}; |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,3 +12,4 @@ generated | |
.env | ||
.DS_Store | ||
k6example/libs | ||
.eslintcache |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
8.9.4 | ||
14.16.0 |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,24 +22,25 @@ | |
"generate:ts-from-yaml:nodeNm3psp": "shx mkdir -p generated/nodeNm3psp && rimraf generated/nodeNm3psp/* && gen-api-models --strict 0 --api-spec generated/yaml-file/nodeForPsp_Service.yaml --out-dir generated/nodeNm3psp", | ||
"generate:ts-from-yaml:nodeNm3io": "shx mkdir -p generated/nodeNm3io && rimraf generated/nodeNm3io/* && gen-api-models --strict 0 --api-spec generated/yaml-file/nodeForIO_Service.yaml --out-dir generated/nodeNm3io", | ||
"generate:yaml-from-wsdl": "shx mkdir -p generated/yaml-file && rimraf generated/yaml-file/* && node pagopa_api/YamlGenerator.js", | ||
"generate:proxy-api-models": "shx mkdir -p generated/api && rimraf generated/api/* && gen-api-models --api-spec ./api_pagopa.yaml --out-dir generated/api --ts-spec-file generated/api/public_api_pagopa.ts --request-types", | ||
"generate:proxy-api-models": "shx mkdir -p generated/api && rimraf generated/api/* && gen-api-models --api-spec ./api_pagopa.yaml --out-dir generated/api --request-types", | ||
"prettify": "prettier --write \"./**/*.ts\"", | ||
"start": "node dist/src/index.js", | ||
"test:coverage": "jest --runInBand --coverage", | ||
"test:integration": "jest --config=jest.integration.js --runInBand", | ||
"test:coverage": "jest --runInBand --coverage --detectOpenHandles", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. with Jest has detected the following 1 open handle potentially keeping Jest from exiting:
● TCPWRAP is it correct to display it? or is there a way to disable it? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. added for some debugging, but we can disable, thanks |
||
"test:integration": "jest --config=jest.integration.js --runInBand --detectOpenHandles", | ||
"test": "npm-run-all -s test:*", | ||
"lint": "tslint --project .", | ||
"lint": "eslint . -c .eslintrc.js --ext .ts,.tsx --cache", | ||
"postversion": "git push && git push --tags", | ||
"dist:modules": "modclean -r -n default:safe", | ||
"predeploy": "npm-run-all build dist:modules", | ||
"preversion": "auto-changelog --config .auto-changelog.json --unreleased --commit-limit false --stdout --template preview.hbs", | ||
"version": "auto-changelog -p --config .auto-changelog.json --unreleased && git add CHANGELOG.md" | ||
}, | ||
"devDependencies": { | ||
"@pagopa/eslint-config": "^1.3.1", | ||
"@types/bluebird": "^3.5.24", | ||
"@types/debug": "0.0.30", | ||
"@types/express": "^4.11.1", | ||
"@types/jest": "^23.3.2", | ||
"@types/jest": "^27.0.3", | ||
"@types/morgan": "^1.7.35", | ||
"@types/node": "^8.9.4", | ||
"@types/node-fetch": "^2.1.1", | ||
|
@@ -51,27 +52,26 @@ | |
"auto-changelog": "^2.2.1", | ||
"danger": "^7.1.4", | ||
"danger-plugin-digitalcitizenship": "^0.3.1", | ||
"italia-tslint-rules": "^1.1.3", | ||
"italia-utils": "^4.0.1", | ||
"jest": "^23.6.0", | ||
"eslint-plugin-prettier": "^4.0.0", | ||
"jest": "^27.4.5", | ||
"jest-xml-matcher": "^1.1.1", | ||
"js-yaml": "^3.13.1", | ||
"modclean": "^3.0.0-beta.1", | ||
"npm-run-all": "^4.1.3", | ||
"prettier": "^1.14.3", | ||
"rimraf": "^2.6.3", | ||
"shx": "^0.3.2", | ||
"shx": "^0.3.3", | ||
"supertest": "^3.3.0", | ||
"ts-jest": "^23.10.4", | ||
"tslint": "^5.10.0", | ||
"typescript": "^3.4.5" | ||
"ts-jest": "^27.1.2", | ||
"typescript": "^4.3.5" | ||
}, | ||
"dependencies": { | ||
"@pagopa/openapi-codegen-ts": "^10.0.6", | ||
"@pagopa/ts-commons": "^10.2.0", | ||
"express": "^4.17.1", | ||
"fast-memoize": "^2.5.1", | ||
"io-ts": "1.8.5", | ||
"italia-pagopa-commons": "^1.0.0", | ||
"italia-ts-commons": "^8.6.0", | ||
"io-ts": "^2.2.16", | ||
"fp-ts": "^2.11.1", | ||
"morgan": "^1.9.1", | ||
"node-forge": "^0.9.1", | ||
"redis": "^2.8.0", | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is this necessary to wait proxy get up?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you're right, thanks