Skip to content

Commit 94f0eda

Browse files
committed
added code
1 parent 406d72b commit 94f0eda

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

.github/workflows/sonarcloud.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,15 @@ jobs:
1919
pwd
2020
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
2121
poetry run coverage run --source=backend -m unittest discover
22+
poetry run coverage xml -o sonarcloud-coverage.xml
2223
2324
working-directory: "/home/runner/work/immunisation-fhir-api/immunisation-fhir-api/backend"
2425

25-
- name: Coverage
26-
run: poetry run coverage xml -o sonarcloud-coverage.xml
27-
working-directory: "/home/runner/work/immunisation-fhir-api/immunisation-fhir-api"
28-
26+
- name: Aggregate coverage report
27+
run: |
28+
ls -R /home/runner/work/immunisation-fhir-api/immunisation-fhir-api/backend
29+
mv /home/runner/work/immunisation-fhir-api/immunisation-fhir-api/backend/sonarcloud-coverage.xml /home/runner/work/immunisation-fhir-api/immunisation-fhir-api/sonarcloud-coverage.xml
30+
2931
3032
- name: SonarCloud Scan
3133
uses: SonarSource/sonarcloud-github-action@master

0 commit comments

Comments
 (0)