Skip to content
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

ci: save test results in CircleCI #1231

Merged
merged 4 commits into from
Nov 8, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,8 @@ jobs:
- run:
name: 'Test request-client.js'
command: 'yarn workspace @requestnetwork/request-client.js run test --ci --maxWorkers=1'
- store_test_results:
path: packages/request-client.js/reports/
- persist_to_workspace:
root: *working_directory
paths:
Expand All @@ -147,6 +149,8 @@ jobs:
- run:
name: 'Test data-access'
command: 'yarn workspace @requestnetwork/data-access run test --ci --maxWorkers=1'
- store_test_results:
path: packages/data-access/reports/
- persist_to_workspace:
root: *working_directory
paths:
Expand All @@ -164,6 +168,8 @@ jobs:
- run:
name: 'Test data-format'
command: 'yarn workspace @requestnetwork/data-format run test --ci --maxWorkers=1'
- store_test_results:
path: packages/data-format/reports/
- persist_to_workspace:
root: *working_directory
paths:
Expand All @@ -181,6 +187,8 @@ jobs:
- run:
name: 'Test transaction-manager'
command: 'yarn workspace @requestnetwork/transaction-manager run test --ci --maxWorkers=1'
- store_test_results:
path: packages/transaction-manager/reports/
- persist_to_workspace:
root: *working_directory
paths:
Expand All @@ -203,6 +211,8 @@ jobs:
- run:
name: 'Test ethereum-storage'
command: 'yarn workspace @requestnetwork/ethereum-storage run test --ci --maxWorkers=1'
- store_test_results:
path: packages/ethereum-storage/reports/
- persist_to_workspace:
root: *working_directory
paths:
Expand Down Expand Up @@ -240,6 +250,8 @@ jobs:
- run:
name: 'Test request-logic'
command: 'yarn workspace @requestnetwork/request-logic run test --ci --maxWorkers=1'
- store_test_results:
path: packages/request-logic/reports/
- persist_to_workspace:
root: *working_directory
paths:
Expand All @@ -257,6 +269,8 @@ jobs:
- run:
name: 'Test advanced-logic'
command: 'yarn workspace @requestnetwork/advanced-logic run test --ci --maxWorkers=1'
- store_test_results:
path: packages/advanced-logic/reports/
- persist_to_workspace:
root: *working_directory
paths:
Expand All @@ -282,6 +296,8 @@ jobs:
- run:
name: 'Test request-node'
command: 'yarn workspace @requestnetwork/request-node run test --ci'
- store_test_results:
path: packages/request-node/reports/
- persist_to_workspace:
root: *working_directory
paths:
Expand All @@ -297,6 +313,8 @@ jobs:
- run:
name: 'Test utils'
command: 'yarn workspace @requestnetwork/utils run test --ci --maxWorkers=1'
- store_test_results:
path: packages/utils/reports/
- persist_to_workspace:
root: *working_directory
paths:
Expand All @@ -311,6 +329,8 @@ jobs:
- run:
name: 'Test currency'
command: 'yarn workspace @requestnetwork/currency run test --ci --maxWorkers=1'
- store_test_results:
path: packages/currency/reports/
- persist_to_workspace:
root: *working_directory
paths:
Expand All @@ -328,6 +348,8 @@ jobs:
- run:
name: 'Test epk-signature'
command: 'yarn workspace @requestnetwork/epk-signature run test --ci --maxWorkers=1'
- store_test_results:
path: packages/epk-signature/reports/
- persist_to_workspace:
root: *working_directory
paths:
Expand All @@ -345,6 +367,8 @@ jobs:
- run:
name: 'Test epk-decryption'
command: 'yarn workspace @requestnetwork/epk-decryption run test --ci --maxWorkers=1'
- store_test_results:
path: packages/epk-decryption/reports/
- persist_to_workspace:
root: *working_directory
paths:
Expand All @@ -362,6 +386,8 @@ jobs:
- run:
name: 'Test web3-signature'
command: 'yarn workspace @requestnetwork/web3-signature run test --ci --maxWorkers=1'
- store_test_results:
path: packages/web3-signature/reports/
- persist_to_workspace:
root: *working_directory
paths:
Expand Down Expand Up @@ -431,6 +457,8 @@ jobs:
- run:
name: 'Test multi-format'
command: 'yarn workspace @requestnetwork/multi-format run test --ci --maxWorkers=1'
- store_test_results:
path: packages/multi-format/reports/
- persist_to_workspace:
root: *working_directory
paths:
Expand All @@ -452,6 +480,8 @@ jobs:
- run:
name: 'Test payment-detection'
command: 'yarn workspace @requestnetwork/payment-detection run test --ci'
- store_test_results:
path: packages/payment-detection/reports/
- persist_to_workspace:
root: *working_directory
paths:
Expand All @@ -473,6 +503,8 @@ jobs:
- run:
name: 'Test payment-processor'
command: 'yarn workspace @requestnetwork/payment-processor run test --ci'
- store_test_results:
path: packages/payment-processor/reports/
- persist_to_workspace:
root: *working_directory
paths:
Expand Down
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,9 @@ yarn-error.log
tsconfig.tsbuildinfo
tsconfig.build.tsbuildinfo

# coverage
# tests
/packages/*/coverage/
/packages/*/reports/

# payment-detection generated files
/packages/payment-detection/src/thegraph/generated/
Expand Down
21 changes: 21 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
/** @type {import('jest').Config} */
module.exports = {
preset: 'ts-jest',
testEnvironment: 'node',
collectCoverage: true,
reporters: [
'default',
[
'jest-junit',
{
addFileAttribute: 'true',
ancestorSeparator: ' > ',
suiteNameTemplate: '{filename}',
classNameTemplate: '{classname}',
titleTemplate: '{title}',
outputDirectory: 'reports',
outputName: 'jest-results.xml',
},
],
],
};
7 changes: 4 additions & 3 deletions packages/advanced-logic/jest.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
const jestCommonConfig = require('../../jest.config');

/** @type {import('jest').Config} */
module.exports = {
preset: 'ts-jest',
testEnvironment: 'node',
collectCoverage: true,
...jestCommonConfig,
};
1 change: 1 addition & 0 deletions packages/advanced-logic/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
"@types/jest": "29.5.6",
"@types/node": "16.11.7",
"jest": "29.5.0",
"jest-junit": "16.0.0",
"nyc": "15.1.0",
"shx": "0.3.2",
"ts-jest": "29.1.0",
Expand Down
7 changes: 4 additions & 3 deletions packages/currency/jest.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
const jestCommonConfig = require('../../jest.config');

/** @type {import('jest').Config} */
module.exports = {
preset: 'ts-jest',
testEnvironment: 'node',
collectCoverage: true,
...jestCommonConfig,
};
1 change: 1 addition & 0 deletions packages/currency/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@
"@types/node-dijkstra": "2.5.2",
"ethers": "5.5.1",
"jest": "29.5.0",
"jest-junit": "16.0.0",
"prettier": "2.1.1",
"shx": "0.3.2",
"source-map-support": "0.5.19",
Expand Down
7 changes: 4 additions & 3 deletions packages/data-access/jest.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
const jestCommonConfig = require('../../jest.config');

/** @type {import('jest').Config} */
module.exports = {
preset: 'ts-jest',
testEnvironment: 'node',
collectCoverage: true,
...jestCommonConfig,
};
1 change: 1 addition & 0 deletions packages/data-access/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
"@types/jest": "29.5.6",
"@types/node": "16.11.7",
"jest": "29.5.0",
"jest-junit": "16.0.0",
"nyc": "15.1.0",
"shx": "0.3.2",
"source-map-support": "0.5.19",
Expand Down
7 changes: 4 additions & 3 deletions packages/data-format/jest.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
const jestCommonConfig = require('../../jest.config');

/** @type {import('jest').Config} */
module.exports = {
preset: 'ts-jest',
testEnvironment: 'node',
collectCoverage: true,
...jestCommonConfig,
};
1 change: 1 addition & 0 deletions packages/data-format/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
},
"devDependencies": {
"@types/node": "16.11.7",
"jest-junit": "16.0.0",
"nyc": "15.1.0",
"rimraf": "3.0.2",
"shx": "0.3.2",
Expand Down
7 changes: 4 additions & 3 deletions packages/epk-decryption/jest.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
const jestCommonConfig = require('../../jest.config');

/** @type {import('jest').Config} */
module.exports = {
preset: 'ts-jest',
testEnvironment: 'node',
collectCoverage: true,
...jestCommonConfig,
};
1 change: 1 addition & 0 deletions packages/epk-decryption/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@
"crypto-browserify": "3.12.0",
"duplicate-package-checker-webpack-plugin": "3.0.0",
"jest": "29.5.0",
"jest-junit": "16.0.0",
"npm-run-all": "4.1.5",
"nyc": "15.1.0",
"shx": "0.3.2",
Expand Down
7 changes: 4 additions & 3 deletions packages/epk-signature/jest.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
const jestCommonConfig = require('../../jest.config');

/** @type {import('jest').Config} */
module.exports = {
preset: 'ts-jest',
testEnvironment: 'node',
collectCoverage: true,
...jestCommonConfig,
};
1 change: 1 addition & 0 deletions packages/epk-signature/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@
"crypto-browserify": "3.12.0",
"duplicate-package-checker-webpack-plugin": "3.0.0",
"jest": "29.5.0",
"jest-junit": "16.0.0",
"npm-run-all": "4.1.5",
"nyc": "15.1.0",
"shx": "0.3.2",
Expand Down
7 changes: 4 additions & 3 deletions packages/ethereum-storage/jest.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
const jestCommonConfig = require('../../jest.config');

/** @type {import('jest').Config} */
module.exports = {
preset: 'ts-jest',
testEnvironment: 'node',
collectCoverage: true,
...jestCommonConfig,
};
1 change: 1 addition & 0 deletions packages/ethereum-storage/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@
"@types/node": "16.11.7",
"axios-mock-adapter": "1.19.0",
"jest": "29.5.0",
"jest-junit": "16.0.0",
"nyc": "15.1.0",
"shx": "0.3.2",
"solium": "1.2.5",
Expand Down
7 changes: 4 additions & 3 deletions packages/integration-test/jest.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
const jestCommonConfig = require('../../jest.config');

/** @type {import('jest').Config} */
module.exports = {
preset: 'ts-jest',
testEnvironment: 'node',
collectCoverage: true,
...jestCommonConfig,
};
1 change: 1 addition & 0 deletions packages/integration-test/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@
"@types/node": "16.11.7",
"ethers": "5.5.1",
"jest": "29.5.0",
"jest-junit": "16.0.0",
"npm-run-all": "4.1.5",
"ts-jest": "29.1.0",
"ts-node": "10.9.1",
Expand Down
7 changes: 4 additions & 3 deletions packages/multi-format/jest.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
const jestCommonConfig = require('../../jest.config');

/** @type {import('jest').Config} */
module.exports = {
preset: 'ts-jest',
testEnvironment: 'node',
collectCoverage: true,
...jestCommonConfig,
};
1 change: 1 addition & 0 deletions packages/multi-format/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
"devDependencies": {
"@types/jest": "29.5.6",
"jest": "29.5.0",
"jest-junit": "16.0.0",
"nyc": "15.1.0",
"shx": "0.3.2",
"source-map-support": "0.5.19",
Expand Down
7 changes: 4 additions & 3 deletions packages/payment-detection/jest.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
const jestCommonConfig = require('../../jest.config');

/** @type {import('jest').Config} */
module.exports = {
preset: 'ts-jest',
testEnvironment: 'node',
collectCoverage: true,
...jestCommonConfig,
};
1 change: 1 addition & 0 deletions packages/payment-detection/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@
"@types/jest": "29.5.6",
"@types/lodash": "4.14.161",
"jest": "29.5.0",
"jest-junit": "16.0.0",
"nyc": "15.1.0",
"shx": "0.3.2",
"source-map-support": "0.5.19",
Expand Down
7 changes: 4 additions & 3 deletions packages/payment-processor/jest.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
const jestCommonConfig = require('../../jest.config');

/** @type {import('jest').Config} */
module.exports = {
preset: 'ts-jest',
testEnvironment: 'node',
collectCoverage: true,
...jestCommonConfig,
};
1 change: 1 addition & 0 deletions packages/payment-processor/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@
"devDependencies": {
"@types/jest": "29.5.6",
"jest": "29.5.0",
"jest-junit": "16.0.0",
"nyc": "15.1.0",
"shx": "0.3.2",
"source-map-support": "0.5.19",
Expand Down
7 changes: 4 additions & 3 deletions packages/request-client.js/jest.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
const jestCommonConfig = require('../../jest.config');

/** @type {import('jest').Config} */
module.exports = {
preset: 'ts-jest',
testEnvironment: 'node',
collectCoverage: true,
...jestCommonConfig,
};
1 change: 1 addition & 0 deletions packages/request-client.js/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@
"crypto-browserify": "3.12.0",
"duplicate-package-checker-webpack-plugin": "3.0.0",
"jest": "29.5.0",
"jest-junit": "16.0.0",
"npm-run-all": "4.1.5",
"nyc": "15.1.0",
"shx": "0.3.2",
Expand Down
Loading