-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (27 loc) · 1.01 KB
/
sonarcube.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: SonarCloud
on:
pull_request:
jobs:
sonarcloud:
name: SonarCloud
if: ${{ !contains(github.event.pull_request.labels.*.name, 'dependency') }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Run unittest with coverage
run: |
pwd
pip install poetry moto==4.2.11 coverage redis botocore==1.35.49 simplejson
poetry run coverage run --source=filenameprocessor -m unittest discover -s filenameprocessor
poetry run coverage xml -o sonarcloud-coverage.xml
# working-directory: "/home/runner/work/immunisation-fhir-api/immunisation-fhir-api/backend"
- name: Aggregate coverage report
run: |
ls -R /home/runner/work/immunisation-batch/immunisation-batch
- name: SonarCloud Scan
uses: SonarSource/sonarcloud-github-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}