Skip to content

Commit 6d3df38

Browse files
committed
eli-435 - adding lines of code report
1 parent f715138 commit 6d3df38

File tree

1 file changed

+23
-1
lines changed

1 file changed

+23
-1
lines changed

.github/workflows/sonarcube-scan-main-branch.yaml

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,36 @@ concurrency:
1313
cancel-in-progress: true
1414

1515
jobs:
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:
1736
runs-on: ubuntu-latest
1837
steps:
1938
- name: Checkout (full history)
2039
uses: actions/checkout@v4
2140
with:
2241
fetch-depth: 0
23-
42+
- name: "Get the coverage report"
43+
uses: actions/download-artifact@v5
44+
with:
45+
name: coverage.xml
2446
- name: Run static analysis script
2547
env:
2648
BRANCH_NAME: main

0 commit comments

Comments
 (0)