File tree Expand file tree Collapse file tree 1 file changed +26
-3
lines changed
Expand file tree Collapse file tree 1 file changed +26
-3
lines changed Original file line number Diff line number Diff line change @@ -13,19 +13,42 @@ concurrency:
1313 cancel-in-progress : true
1414
1515jobs :
16+ test-unit :
17+ name : " Unit tests"
18+ runs-on : ubuntu-latest
19+ timeout-minutes : 5
20+ steps :
21+ - name : " Checkout code"
22+ uses : actions/checkout@v5
23+ - name : " Set up Python"
24+ uses : actions/setup-python@v5
25+ with :
26+ python-version : ' 3.13'
27+ - name : " Run unit test suite"
28+ run : |
29+ make test-unit
30+ - name : " Save the coverage check result"
31+ uses : actions/upload-artifact@v4
32+ with :
33+ name : coverage.xml
34+ path : coverage.xml
1635 sonar_main :
36+ needs : test-unit
1737 runs-on : ubuntu-latest
1838 steps :
1939 - name : Checkout (full history)
2040 uses : actions/checkout@v4
2141 with :
2242 fetch-depth : 0
23-
43+ - name : " Get the coverage report"
44+ uses : actions/download-artifact@v5
45+ with :
46+ name : coverage.xml
2447 - name : Run static analysis script
2548 env :
2649 BRANCH_NAME : main
27- SONAR_ORGANISATION_KEY : ${{ secrets .SONAR_ORGANISATION_KEY }}
28- SONAR_PROJECT_KEY : ${{ secrets .SONAR_PROJECT_KEY }}
50+ SONAR_ORGANISATION_KEY : ${{ vars .SONAR_ORGANISATION_KEY }}
51+ SONAR_PROJECT_KEY : ${{ vars .SONAR_PROJECT_KEY }}
2952 SONAR_TOKEN : ${{ secrets.SONAR_TOKEN }}
3053 FORCE_USE_DOCKER : " true"
3154 run : ./scripts/reports/perform-static-analysis.sh
You can’t perform that action at this time.
0 commit comments