Skip to content

Commit

Permalink
mark each test success or fail
Browse files Browse the repository at this point in the history
  • Loading branch information
CLJ2006 committed Jan 6, 2025
1 parent 7fdaf99 commit 1f32279
Showing 1 changed file with 29 additions and 2 deletions.
31 changes: 29 additions & 2 deletions .github/workflows/sonarcloud.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,38 +33,65 @@ jobs:
poetry run coverage run --source=filenameprocessor -m unittest discover -s filenameprocessor
poetry run coverage xml -o sonarcloud-coverage-filenameprocessor-coverage.xml
- name: Filenameprocessor test failure
if: failure()
run: exit 1

- name: Run unittest with recordprocessor-coverage
continue-on-error: true
run: |
poetry run coverage run --source=recordprocessor -m unittest discover -s recordprocessor
poetry run coverage xml -o sonarcloud-coverage-recordprocessor-coverage.xml
- name: Recordprocessor test failure
if: failure()
run: exit 1

- name: Run unittest with recordforwarder-coverage
continue-on-error: true
run: |
poetry run coverage run --source=recordforwarder -m unittest discover -s recordforwarder
poetry run coverage xml -o sonarcloud-coverage-recordforwarder-coverage.xml
poetry run coverage xml -o sonarcloud-coverage-recordforwarder-coverage.xml
- name: Check if recordforwarder test failed
if: failure()
run: exit 1


- name: Run unittest with coverage-ack-lambda
continue-on-error: true
run: |
pip install poetry coverage moto==4.2.11 freezegun
poetry run coverage run --source=ack_backend -m unittest discover -s ack_backend
poetry run coverage xml -o sonarcloud-coverage-ack-lambda.xml
poetry run coverage xml -o sonarcloud-coverage-ack-lambda.xml
- name: Ack-lambda test failure
if: failure()
run: exit 1

- name: Run unittest with coverage-delta
continue-on-error: true
run: |
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
poetry run coverage run --source=delta_backend -m unittest discover -s delta_backend
poetry run coverage xml -o sonarcloud-coverage-delta.xml
- name: Delta test failure
if: failure()
run: exit 1


- name: Run unittest with coverage-fhir-api
continue-on-error: true
run: |
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
poetry run coverage run --source=backend -m unittest discover -s backend
poetry run coverage xml -o sonarcloud-coverage.xml
- name: Fhir-api test failure
if: failure()
run: exit 1


- name: SonarCloud Scan
uses: SonarSource/sonarcloud-github-action@master
Expand Down

0 comments on commit 1f32279

Please sign in to comment.