|
50 | 50 | set -euo pipefail |
51 | 51 | if [ "${{ env.RUN_CODE_COVERAGE }}" = "true" ]; then |
52 | 52 | echo "Running unit tests with coverage" |
53 | | - yarn workspace @hyperledger/cactus-plugin-satp-hermes test:unit --coverage --coverageDirectory=./code-coverage-ts/satp-hermes || true |
| 53 | + yarn workspace @hyperledger/cactus-plugin-satp-hermes test:unit --coverage --coverageDirectory=./code-coverage-ts/satp-hermes |
54 | 54 | else |
55 | 55 | echo "Running unit tests without coverage" |
56 | 56 | yarn workspace @hyperledger/cactus-plugin-satp-hermes test:unit |
|
80 | 80 | path: packages/cactus-plugin-satp-hermes/reports/junit/satp-hermes-tests-unit.xml |
81 | 81 | reporter: jest-junit |
82 | 82 | list-tests: failed |
83 | | - fail-on-error: false # Don't fail the job, just report results |
84 | | - |
85 | | - - name: Set job outcome based on test results |
86 | | - if: always() && steps.check_unit_junit.outputs.found == 'true' |
87 | | - run: | |
88 | | - if grep -q 'failures="[1-9]' packages/cactus-plugin-satp-hermes/reports/junit/satp-hermes-tests-unit.xml 2>/dev/null; then |
89 | | - echo "❌ Unit tests failed - check test results above" |
90 | | - echo "::warning::SATP Unit tests have failures" |
91 | | - exit 1 |
92 | | - elif grep -q 'errors="[1-9]' packages/cactus-plugin-satp-hermes/reports/junit/satp-hermes-tests-unit.xml 2>/dev/null; then |
93 | | - echo "❌ Unit tests had errors - check test results above" |
94 | | - echo "::warning::SATP Unit tests have errors" |
95 | | - exit 1 |
96 | | - else |
97 | | - echo "✅ Unit tests passed successfully" |
98 | | - fi |
| 83 | + fail-on-error: false |
99 | 84 |
|
100 | 85 | - name: Check for SATP unit coverage artifacts |
101 | 86 | id: check_unit_coverage |
@@ -155,7 +140,7 @@ jobs: |
155 | 140 | set -euo pipefail |
156 | 141 | if [ "${{ env.RUN_CODE_COVERAGE }}" = "true" ]; then |
157 | 142 | echo "Running integration bridge tests with coverage" |
158 | | - yarn workspace @hyperledger/cactus-plugin-satp-hermes test:integration:bridge --coverage --coverageDirectory=./code-coverage-ts/satp-hermes-integration-bridge || true |
| 143 | + yarn workspace @hyperledger/cactus-plugin-satp-hermes test:integration:bridge --coverage --coverageDirectory=./code-coverage-ts/satp-hermes-integration-bridge |
159 | 144 | else |
160 | 145 | echo "Running integration bridge tests without coverage" |
161 | 146 | yarn workspace @hyperledger/cactus-plugin-satp-hermes test:integration:bridge |
@@ -245,7 +230,7 @@ jobs: |
245 | 230 | set -euo pipefail |
246 | 231 | if [ "${{ env.RUN_CODE_COVERAGE }}" = "true" ]; then |
247 | 232 | echo "Running integration oracle tests with coverage" |
248 | | - yarn workspace @hyperledger/cactus-plugin-satp-hermes test:integration:oracle --coverage --coverageDirectory=./code-coverage-ts/satp-hermes-integration-oracle || true |
| 233 | + yarn workspace @hyperledger/cactus-plugin-satp-hermes test:integration:oracle --coverage --coverageDirectory=./code-coverage-ts/satp-hermes-integration-oracle |
249 | 234 | else |
250 | 235 | echo "Running integration oracle tests without coverage" |
251 | 236 | yarn workspace @hyperledger/cactus-plugin-satp-hermes test:integration:oracle |
@@ -337,7 +322,7 @@ jobs: |
337 | 322 | set -euo pipefail |
338 | 323 | if [ "${{ env.RUN_CODE_COVERAGE }}" = "true" ]; then |
339 | 324 | echo "Running integration gateway tests with coverage" |
340 | | - yarn workspace @hyperledger/cactus-plugin-satp-hermes test:integration:gateway --coverage --coverageDirectory=./code-coverage-ts/satp-hermes-integration-gateway || true |
| 325 | + yarn workspace @hyperledger/cactus-plugin-satp-hermes test:integration:gateway --coverage --coverageDirectory=./code-coverage-ts/satp-hermes-integration-gateway |
341 | 326 | else |
342 | 327 | echo "Running integration gateway tests without coverage" |
343 | 328 | yarn workspace @hyperledger/cactus-plugin-satp-hermes test:integration:gateway |
@@ -428,7 +413,7 @@ jobs: |
428 | 413 | set -euo pipefail |
429 | 414 | if [ "${{ env.RUN_CODE_COVERAGE }}" = "true" ]; then |
430 | 415 | echo "Running integration docker tests with coverage" |
431 | | - yarn workspace @hyperledger/cactus-plugin-satp-hermes test:integration:docker --coverage --coverageDirectory=./code-coverage-ts/satp-hermes-integration-docker || true |
| 416 | + yarn workspace @hyperledger/cactus-plugin-satp-hermes test:integration:docker --coverage --coverageDirectory=./code-coverage-ts/satp-hermes-integration-docker |
432 | 417 | else |
433 | 418 | echo "Running integration docker tests without coverage" |
434 | 419 | yarn workspace @hyperledger/cactus-plugin-satp-hermes test:integration:docker |
@@ -531,7 +516,7 @@ jobs: |
531 | 516 | set -euo pipefail |
532 | 517 | if [ "${{ env.RUN_CODE_COVERAGE }}" = "true" ]; then |
533 | 518 | echo "Running CBDC integration tests with coverage" |
534 | | - yarn workspace @hyperledger/cactus-example-cbdc-bridging-backend test:integration --coverage --coverageDirectory=./code-coverage-ts/satp-hermes-cbdc || true |
| 519 | + yarn workspace @hyperledger/cactus-example-cbdc-bridging-backend test:integration --coverage --coverageDirectory=./code-coverage-ts/satp-hermes-cbdc |
535 | 520 | else |
536 | 521 | echo "Running CBDC integration tests without coverage" |
537 | 522 | yarn workspace @hyperledger/cactus-example-cbdc-bridging-backend test:integration |
|
0 commit comments