feat(github-actions): support npm for audit action #10458
53 passed, 1 failed and 2 skipped
Report | Passed | Failed | Skipped | Time |
---|---|---|---|---|
@ama-sdk/create/dist-test/it-report.xml | 7✅ | 489s | ||
@ama-sdk/schematics/dist-test/it-report.xml | 4ms | |||
@o3r/analytics/dist-test/it-report.xml | 2✅ | 143s | ||
@o3r/apis-manager/dist-test/it-report.xml | 1✅ | 61s | ||
@o3r/application/dist-test/it-report.xml | 1✅ | 66s | ||
@o3r/components/dist-test/it-report.xml | 6✅ | 321s | ||
@o3r/configuration/dist-test/it-report.xml | 2✅ | 130s | ||
@o3r/core/dist-test/it-report.xml | 1❌ | 177s | ||
@o3r/create/dist-test/it-report.xml | 3✅ | 249s | ||
@o3r/design/dist-test/it-report.xml | 1✅ | 75s | ||
@o3r/eslint-config-otter/dist-test/it-report.xml | 2✅ | 324s | ||
@o3r/extractors/dist-test/it-report.xml | 3✅ | 288s | ||
@o3r/localization/dist-test/it-report.xml | 6✅ | 391s | ||
@o3r/new-version/dist-test/it-report.xml | 1✅ | 51s | ||
@o3r/rules-engine/dist-test/it-report.xml | 2✅ | 142s | ||
@o3r/stylelint-plugin/dist-test/it-report.xml | 2✅ | 108s | ||
@o3r/styling/dist-test/it-report.xml | 6✅ | 342s | ||
@o3r/testing/dist-test/it-report.xml | 2✅ | 2⚪ | 202s | |
@o3r/third-party/dist-test/it-report.xml | 1✅ | 68s | ||
@o3r/workspace/dist-test/it-report.xml | 5✅ | 409s |
✅ @ama-sdk/create/dist-test/it-report.xml
7 tests were completed in 489s with 7 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
Create new sdk command | 7✅ | 479s |
✅ Create new sdk command
Create new sdk command should generate a light SDK when the specification is provided
✅ Create new sdk command should generate a light SDK when the specification is provided
Create new sdk command should generate a full SDK when the specification is provided
✅ Create new sdk command should generate a full SDK when the specification is provided
Create new sdk command should generate a full SDK when the specification is provided as npm dependency
✅ Create new sdk command should generate a full SDK when the specification is provided as npm dependency
Create new sdk command should generate an SDK with no package scope
✅ Create new sdk command should generate an SDK with no package scope
Create new sdk command should generate an empty SDK ready to be used
✅ Create new sdk command should generate an empty SDK ready to be used
Create new sdk command should fail when there is an error
✅ Create new sdk command should fail when there is an error
Create new sdk command should use pinned versions when --exact-o3r-version is used
✅ Create new sdk command should use pinned versions when --exact-o3r-version is used
✅ @ama-sdk/schematics/dist-test/it-report.xml
No tests found
✅ @o3r/analytics/dist-test/it-report.xml
2 tests were completed in 143s with 2 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
ng add analytics | 2✅ | 132s |
✅ ng add analytics
ng add analytics should add analytics to an application
✅ ng add analytics should add analytics to an application
ng add analytics should add analytics to a library
✅ ng add analytics should add analytics to a library
✅ @o3r/apis-manager/dist-test/it-report.xml
1 tests were completed in 61s with 1 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
new otter application with apis-manager | 1✅ | 51s |
✅ new otter application with apis-manager
new otter application with apis-manager should add apis-manager to existing application
✅ new otter application with apis-manager should add apis-manager to existing application
✅ @o3r/application/dist-test/it-report.xml
1 tests were completed in 66s with 1 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
new Angular application | 1✅ | 54s |
✅ new Angular application
new Angular application should add Otter Application to existing Angular app
✅ new Angular application should add Otter Application to existing Angular app
✅ @o3r/components/dist-test/it-report.xml
6 tests were completed in 321s with 6 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
check metadata migration | 4✅ | 303s | ||
ng add components | 2✅ | 149s |
✅ check metadata migration
check metadata migration should not throw
✅ check metadata migration should not throw
check metadata migration should throw because no migration data
✅ check metadata migration should throw because no migration data
check metadata migration should throw because migration data invalid
✅ check metadata migration should throw because migration data invalid
check metadata migration should throw because breaking changes are not allowed
✅ check metadata migration should throw because breaking changes are not allowed
✅ ng add components
ng add components should add components to an application
✅ ng add components should add components to an application
ng add components should add components to a library
✅ ng add components should add components to a library
✅ @o3r/configuration/dist-test/it-report.xml
2 tests were completed in 130s with 2 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
new otter application with configuration | 2✅ | 115s |
✅ new otter application with configuration
new otter application with configuration should add configuration to an application
✅ new otter application with configuration should add configuration to an application
new otter application with configuration should add configuration to a library
✅ new otter application with configuration should add configuration to a library
❌ @o3r/core/dist-test/it-report.xml
1 tests were completed in 177s with 0 passed, 1 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
new otter application | 1❌ | 159s |
❌ new otter application
new otter application should build empty app
❌ new otter application should build empty app
Error: expect(received).not.toThrow()
✅ @o3r/create/dist-test/it-report.xml
3 tests were completed in 249s with 3 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
Create new otter project command | 3✅ | 241s |
✅ Create new otter project command
Create new otter project command should generate a project with an application
✅ Create new otter project command should generate a project with an application
Create new otter project command should generate a project with a library
✅ Create new otter project command should generate a project with a library
Create new otter project command should generate a project with an application with --exact-o3r-version
✅ Create new otter project command should generate a project with an application with --exact-o3r-version
✅ @o3r/design/dist-test/it-report.xml
1 tests were completed in 75s with 1 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
new otter application with Design | 1✅ | 58s |
✅ new otter application with Design
new otter application with Design should add design to existing application
✅ new otter application with Design should add design to existing application
✅ @o3r/eslint-config-otter/dist-test/it-report.xml
2 tests were completed in 324s with 2 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
ng add eslint-config | 2✅ | 308s |
✅ ng add eslint-config
ng add eslint-config should add eslint-config to an application
✅ ng add eslint-config should add eslint-config to an application
ng add eslint-config should add eslint-config to a library
✅ ng add eslint-config should add eslint-config to a library
✅ @o3r/extractors/dist-test/it-report.xml
3 tests were completed in 288s with 3 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
aggregate migration scripts | 1✅ | 208s | ||
ng add extractors | 2✅ | 270s |
✅ aggregate migration scripts
aggregate migration scripts should create migration scripts including lib content
✅ aggregate migration scripts should create migration scripts including lib content
✅ ng add extractors
ng add extractors should add extractors to an application
✅ ng add extractors should add extractors to an application
ng add extractors should add extractors to a library
✅ ng add extractors should add extractors to a library
✅ @o3r/localization/dist-test/it-report.xml
6 tests were completed in 391s with 6 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
check metadata migration | 4✅ | 371s | ||
ng add otter localization | 2✅ | 182s |
✅ check metadata migration
check metadata migration should not throw
✅ check metadata migration should not throw
check metadata migration should throw because no migration data
✅ check metadata migration should throw because no migration data
check metadata migration should throw because migration data invalid
✅ check metadata migration should throw because migration data invalid
check metadata migration should throw because breaking changes are not allowed
✅ check metadata migration should throw because breaking changes are not allowed
✅ ng add otter localization
ng add otter localization should add localization to an application
✅ ng add otter localization should add localization to an application
ng add otter localization should add localization to a library
✅ ng add otter localization should add localization to a library
✅ @o3r/new-version/dist-test/it-report.xml
1 tests were completed in 51s with 1 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
undefined | 1✅ | 41s |
✅ undefined
should add Otter Application to existing Angular app
✅ should add Otter Application to existing Angular app
✅ @o3r/rules-engine/dist-test/it-report.xml
2 tests were completed in 142s with 2 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
ng add rules-engine | 2✅ | 129s |
✅ ng add rules-engine
ng add rules-engine should add rules engine to an application
✅ ng add rules-engine should add rules engine to an application
ng add rules-engine should add rules engine to a library
✅ ng add rules-engine should add rules engine to a library
✅ @o3r/stylelint-plugin/dist-test/it-report.xml
2 tests were completed in 108s with 2 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
ng add stylelint-plugin | 2✅ | 98s |
✅ ng add stylelint-plugin
ng add stylelint-plugin should add stylelint-plugin to an application
✅ ng add stylelint-plugin should add stylelint-plugin to an application
ng add stylelint-plugin should add stylelint-plugin to a library
✅ ng add stylelint-plugin should add stylelint-plugin to a library
✅ @o3r/styling/dist-test/it-report.xml
6 tests were completed in 342s with 6 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
check metadata migration | 4✅ | 322s | ||
ng add styling | 2✅ | 174s |
✅ check metadata migration
check metadata migration should not throw
✅ check metadata migration should not throw
check metadata migration should throw because no migration data
✅ check metadata migration should throw because no migration data
check metadata migration should throw because migration data invalid
✅ check metadata migration should throw because migration data invalid
check metadata migration should throw because breaking changes are not allowed
✅ check metadata migration should throw because breaking changes are not allowed
✅ ng add styling
ng add styling should add styling to an application
✅ ng add styling should add styling to an application
ng add styling should add styling to a library
✅ ng add styling should add styling to a library
✅ @o3r/testing/dist-test/it-report.xml
4 tests were completed in 202s with 2 passed, 0 failed and 2 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
ng add testing | 2✅ | 2⚪ | 185s |
✅ ng add testing
ng add testing should add testing to an application
✅ ng add testing should add testing to an application
ng add testing should add testing to an application and fixture to component
✅ ng add testing should add testing to an application and fixture to component
ng add testing should add testing to a library
⚪ ng add testing should add testing to a library
ng add testing should add testing to a library and fixture to component
⚪ ng add testing should add testing to a library and fixture to component
✅ @o3r/third-party/dist-test/it-report.xml
1 tests were completed in 68s with 1 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
new Angular application | 1✅ | 57s |
✅ new Angular application
new Angular application should add Otter Third Party to existing Angular app
✅ new Angular application should add Otter Third Party to existing Angular app
✅ @o3r/workspace/dist-test/it-report.xml
5 tests were completed in 409s with 5 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
new otter workspace | 5✅ | 393s |
✅ new otter workspace
new otter workspace should add sdk to an existing workspace
✅ new otter workspace should add sdk to an existing workspace
new otter workspace should add sdk to an existing workspace with local spec
✅ new otter workspace should add sdk to an existing workspace with local spec
new otter workspace should add sdk to an existing workspace with spec package name
✅ new otter workspace should add sdk to an existing workspace with spec package name
new otter workspace should add a library to an existing workspace
✅ new otter workspace should add a library to an existing workspace
new otter workspace should generate a monorepo setup
✅ new otter workspace should generate a monorepo setup
Annotations
Check failure on line 105 in packages/@o3r/test-helpers/src/utilities/package-manager.ts
github-actions / IT Tests report-ubuntu-latest-npm
new otter application ► new otter application should build empty app ► new otter application should build empty app
Failed test found in:
@o3r/core/dist-test/it-report.xml
Error:
Error: expect(received).not.toThrow()
Raw output
Error: expect(received).not.toThrow()
Error name: "Error"
Error message: "Command failed: npm exec ng add @o3r/core@~999 -- --preset all --project-name test-app --skip-confirmation
STDERR:
The package @o3r/analytics was not installed, the options check will be skipped
The package @o3r/apis-manager was not installed, the options check will be skipped
The package @o3r/components was not installed, the options check will be skipped
The package @o3r/configuration was not installed, the options check will be skipped
The package @o3r/design was not installed, the options check will be skipped
The package @o3r/dynamic-content was not installed, the options check will be skipped
The package @o3r/eslint-config-otter was not installed, the options check will be skipped
The package @o3r/eslint-plugin was not installed, the options check will be skipped
The package @o3r/forms was not installed, the options check will be skipped
The package @o3r/localization was not installed, the options check will be skipped
The package @o3r/rules-engine was not installed, the options check will be skipped
The package @o3r/stylelint-plugin was not installed, the options check will be skipped
The package @o3r/styling was not installed, the options check will be skipped
undefined:1
error code: 520
^·
SyntaxError: Unexpected token 'e', \"error code: 520\" is not valid JSON
at JSON.parse (<anonymous>)
at IncomingMessage.<anonymous> (/home/runner/work/otter/it-tests/test-app-core/node_modules/@o3r/schematics/src/modules/modules.helpers.js:25:42)
at IncomingMessage.emit (node:events:531:35)
at endReadableNT (node:internal/streams/readable:1696:12)
at process.processTicksAndRejections (node:internal/process/task_queues:82:21)·
Node.js v20.17.0·
OUTPUT:
,Skipping installation: Package already installed
ESLint package not installed. Skipping Otter linter phase!
You can add Otter linter config rules later to the project via this command: ng add @o3r/eslint-config-otter
The following modules will be installed: @o3r/analytics, @o3r/apis-manager, @o3r/application, @o3r/components, @o3r/configuration, @o3r/design, @o3r/dynamic-content, @o3r/eslint-config-otter, @o3r/eslint-plugin, @o3r/forms, @o3r/localization, @o3r/logger, @o3r/rules-engine, @o3r/store-sync, @o3r/stylelint-plugin, @o3r/styling
, The package @o3r/analytics was not installed, the options check will be skipped
The package @o3r/apis-manager was not installed, the options check will be skipped
The package @o3r/components was not installed, the options check will be skipped
The package @o3r/configuration was not installed, the options check will be skipped
The package @o3r/design was not installed, the options check will be skipped
The package @o3r/dynamic-content was not installed, the options check will be skipped
The package @o3r/eslint-config-otter was not installed, the options check will be skipped
The package @o3r/eslint-plugin was not installed, the options check will be skipped
The package @o3r/forms was not installed, the options check will be skipped
The package @o3r/localization was not installed, the options check will be skipped
The package @o3r/rules-engine was not installed, the options check will be skipped
The package @o3r/stylelint-plugin was not installed, the options check will be skipped
The package @o3r/styling was not installed, the options check will be skipped
undefined:1
error code: 520
^·
SyntaxError: Unexpected token 'e', \"error code: 520\" is not valid JSON
at JSON.parse (<anonymous>)
at IncomingMessage.<anonymous> (/home/runner/work/otter/it-tests/test-app-core/node_modules/@o3r/schematics/src/modules/modules.helpers.js:25:42)
at IncomingMessage.emit (node:events:531:35)
at endReadableNT (node:internal/streams/readable:1696:12)
at process.processTicksAndRejections (node:internal/process/task_queues:82:21)·
Node.js v20.17.0
"
103 | // Yarn doesn't log errors on stderr, so we need to get them from stdout to have them in the reports
104 | // eslint-disable-next-line @typescript-eslint/restrict-template-expressions
> 105 | throw new Error(`Command failed: ${args.join(' ') }\nSTDERR:\n${err.stderr?.toString() || ''}\nOUTPUT:\n${err.output?.toString() || ''}`);
| ^
106 | }
107 | }
108 |
at IncomingMessage.<anonymous> (../it-tests/test-app-core/node_modules/@o3r/schematics/src/modules/modules.helpers.js:25:42)
at IncomingMessage.emit (node:events:531:35)
at endReadableNT (node:internal/streams/readable:1696:12)
at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
Node.js v20.17.0
OUTPUT:
,Skipping installation: Package already installed
ESLint package not installed. Skipping Otter linter phase!
You can add Otter linter config rules later to the project via this command: ng add @o3r/eslint-config-otter
The following modules will be installed: @o3r/analytics, @o3r/apis-manager, @o3r/application, @o3r/components, @o3r/configuration, @o3r/design, @o3r/dynamic-content, @o3r/eslint-config-otter, @o3r/eslint-plugin, @o3r/forms, @o3r/localization, @o3r/logger, @o3r/rules-engine, @o3r/store-sync, @o3r/stylelint-plugin, @o3r/styling
, The package @o3r/analytics was not installed, the options check will be skipped
The package @o3r/apis-manager was not installed, the options check will be skipped
The package @o3r/components was not installed, the options check will be skipped
The package @o3r/configuration was not installed, the options check will be skipped
The package @o3r/design was not installed, the options check will be skipped
The package @o3r/dynamic-content was not installed, the options check will be skipped
The package @o3r/eslint-config-otter was not installed, the options check will be skipped
The package @o3r/eslint-plugin was not installed, the options check will be skipped
The package @o3r/forms was not installed, the options check will be skipped
The package @o3r/localization was not installed, the options check will be skipped
The package @o3r/rules-engine was not installed, the options check will be skipped
The package @o3r/stylelint-plugin was not installed, the options check will be skipped
The package @o3r/styling was not installed, the options check will be skipped
undefined:1
error code: 520
^
SyntaxError: Unexpected token 'e', "error code: 520" is not valid JSON
at JSON.parse (<anonymous>)
at IncomingMessage.<anonymous> (../it-tests/test-app-core/node_modules/@o3r/schematics/src/modules/modules.helpers.js:25:42)
at IncomingMessage.emit (node:events:531:35)
at endReadableNT (node:internal/streams/readable:1696:12)
at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
Node.js v20.17.0
at execCmd (packages/@o3r/test-helpers/src/utilities/package-manager.ts:105:11)
at packageManagerExec (packages/@o3r/test-helpers/src/utilities/package-manager.ts:166:10)
at packages/@o3r/core/schematics/index.it.spec.ts:28:36
at Object.<anonymous> (.yarn/cache/expect-npm-29.7.0-62e9f7979e-63f97bc51f.zip/node_modules/expect/build/toThrowMatchers.js:74:11)
at Object.throwingMatcher [as toThrow] (.yarn/cache/expect-npm-29.7.0-62e9f7979e-63f97bc51f.zip/node_modules/expect/build/index.js:320:21)
at Object.<anonymous> (packages/@o3r/core/schematics/index.it.spec.ts:28:177)
at Object.<anonymous> (/home/runner/work/otter/otter/packages/@o3r/core/schematics/index.it.spec.ts:28:177)
at Promise.then.completed (/home/runner/work/otter/otter/.yarn/cache/jest-circus-npm-29.7.0-f7679858c6-716a8e3f40.zip/node_modules/jest-circus/build/utils.js:298:28)
at new Promise (<anonymous>)
at callAsyncCircusFn (/home/runner/work/otter/otter/.yarn/cache/jest-circus-npm-29.7.0-f7679858c6-716a8e3f40.zip/node_modules/jest-circus/build/utils.js:231:10)
at _callCircusTest (/home/runner/work/otter/otter/.yarn/cache/jest-circus-npm-29.7.0-f7679858c6-716a8e3f40.zip/node_modules/jest-circus/build/run.js:316:40)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at _runTest (/home/runner/work/otter/otter/.yarn/cache/jest-circus-npm-29.7.0-f7679858c6-716a8e3f40.zip/node_modules/jest-circus/build/run.js:252:3)
at _runTestsForDescribeBlock (/home/runner/work/otter/otter/.yarn/cache/jest-circus-npm-29.7.0-f7679858c6-716a8e3f40.zip/node_modules/jest-circus/build/run.js:126:9)
at _runTestsForDescribeBlock (/home/runner/work/otter/otter/.yarn/cache/jest-circus-npm-29.7.0-f7679858c6-716a8e3f40.zip/node_modules/jest-circus/build/run.js:121:9)
at run (/home/runner/work/otter/otter/.yarn/cache/jest-circus-npm-29.7.0-f7679858c6-716a8e3f40.zip/node_modules/jest-circus/build/run.js:71:3)
at runAndTransformResultsToJestFormat (/home/runner/work/otter/otter/.yarn/cache/jest-circus-npm-29.7.0-f7679858c6-716a8e3f40.zip/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)
at jestAdapter (/home/runner/work/otter/otter/.yarn/cache/jest-circus-npm-29.7.0-f7679858c6-716a8e3f40.zip/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:79:19)
at runTestInternal (/home/runner/work/otter/otter/.yarn/cache/jest-runner-npm-29.7.0-3bc9f82b58-9d8748a494.zip/node_modules/jest-runner/build/runTest.js:367:16)
at runTest (/home/runner/work/otter/otter/.yarn/cache/jest-runner-npm-29.7.0-3bc9f82b58-9d8748a494.zip/node_modules/jest-runner/build/runTest.js:444:34)
at Object.worker (/home/runner/work/otter/otter/.yarn/cache/jest-runner-npm-29.7.0-3bc9f82b58-9d8748a494.zip/node_modules/jest-runner/build/testWorker.js:106:12)