@@ -32,53 +32,38 @@ jobs:
3232 pip install poetry moto==4.2.11 coverage redis botocore==1.35.49 simplejson pandas freezegun
3333 poetry run coverage run --source=filenameprocessor -m unittest discover -s filenameprocessor
3434 poetry run coverage xml -o sonarcloud-coverage-filenameprocessor-coverage.xml
35-
36- - name : Filenameprocessor test failure
37- if : failure()
38- run : exit 1
35+ if [[$? -ne 0]]; then exit 1; fi
3936
4037 - name : Run unittest with recordprocessor-coverage
4138 continue-on-error : true
4239 run : |
4340 poetry run coverage run --source=recordprocessor -m unittest discover -s recordprocessor
4441 poetry run coverage xml -o sonarcloud-coverage-recordprocessor-coverage.xml
45-
46- - name : Recordprocessor test failure
47- if : failure()
48- run : exit 1
42+ if [[$? -ne 0]]; then exit 1; fi
4943
5044 - name : Run unittest with recordforwarder-coverage
5145 continue-on-error : true
5246 run : |
5347 poetry run coverage run --source=recordforwarder -m unittest discover -s recordforwarder
5448 poetry run coverage xml -o sonarcloud-coverage-recordforwarder-coverage.xml
55-
56- - name : Check if recordforwarder test failed
57- if : failure()
58- run : exit 1
49+ if [[$? -ne 0]]; then exit 1; fi
5950
6051
6152 - name : Run unittest with coverage-ack-lambda
6253 continue-on-error : true
6354 run : |
6455 pip install poetry coverage moto==4.2.11 freezegun
6556 poetry run coverage run --source=ack_backend -m unittest discover -s ack_backend
66- poetry run coverage xml -o sonarcloud-coverage-ack-lambda.xml
57+ poetry run coverage xml -o sonarcloud-coverage-ack-lambda.xml
58+ if [[$? -ne 0]]; then exit 1; fi
6759
68- - name : Ack-lambda test failure
69- if : failure()
70- run : exit 1
71-
7260 - name : Run unittest with coverage-delta
7361 continue-on-error : true
7462 run : |
7563 pip install poetry mypy-boto3-dynamodb==1.35.54 boto3==1.26.165 coverage botocore==1.29.165 jmespath==1.0.1 python-dateutil==2.9.0 urllib3==1.26.20 s3transfer==0.6.2 typing-extensions==4.12.2
7664 poetry run coverage run --source=delta_backend -m unittest discover -s delta_backend
7765 poetry run coverage xml -o sonarcloud-coverage-delta.xml
78-
79- - name : Delta test failure
80- if : failure()
81- run : exit 1
66+ if [[$? -ne 0]]; then exit 1; fi
8267
8368
8469 - name : Run unittest with coverage-fhir-api
8772 pip install poetry moto==4.2.11 coverage redis botocore==1.35.49 simplejson responses structlog fhir.resources jsonpath_ng pydantic==1.10.13 requests aws-lambda-typing cffi pyjwt boto3-stubs-lite[dynamodb]~=1.26.90 python-stdnum==1.20
8873 poetry run coverage run --source=backend -m unittest discover -s backend
8974 poetry run coverage xml -o sonarcloud-coverage.xml
90-
91- - name : Fhir-api test failure
92- if : failure()
93- run : exit 1
94-
75+ if [[$? -ne 0]]; then exit 1; fi
9576
9677 - name : SonarCloud Scan
9778 uses : SonarSource/sonarcloud-github-action@master
0 commit comments