aboutsummaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorToni Uhlig <matzeton@googlemail.com>2023-10-18 22:48:44 +0200
committerToni Uhlig <matzeton@googlemail.com>2023-10-18 22:48:44 +0200
commit3d0c06ef54a451c1cb56c6ba1515a079e4028151 (patch)
treedaca854ed0929e1784b1f46bc8d8638616d844c8 /.github
parent8dca2b546a3cc8bf58d0f06a28eb1d867f1976a0 (diff)
Disable SonarCloud Coverage generation.
* ToDo: Fix and Re-Enable? Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/sonarcloud.yml38
1 files changed, 19 insertions, 19 deletions
diff --git a/.github/workflows/sonarcloud.yml b/.github/workflows/sonarcloud.yml
index 30442f731..b788be5f8 100644
--- a/.github/workflows/sonarcloud.yml
+++ b/.github/workflows/sonarcloud.yml
@@ -15,15 +15,15 @@ jobs:
steps:
- uses: actions/checkout@v3
with:
- fetch-depth: 1
- - uses: actions/checkout@v3
- - name: Set up Python 3.8 for gcovr
- uses: actions/setup-python@v4
- with:
- python-version: 3.8
- - name: install gcovr 5.0
- run: |
- pip install gcovr==5.0 # 5.1 is not supported
+ fetch-depth: 0
+# - uses: actions/checkout@v3
+# - name: Set up Python 3.8 for gcovr
+# uses: actions/setup-python@v4
+# with:
+# python-version: 3.8
+# - name: install gcovr 5.0
+# run: |
+# pip install gcovr==5.0 # 5.1 is not supported
- name: Install sonar-scanner and build-wrapper
uses: SonarSource/sonarcloud-github-c-cpp@v2
- name: Install Prerequisites
@@ -35,16 +35,16 @@ jobs:
mkdir build
cmake -S . -B build -DBUILD_NDPI=ON -DDENABLE_ZLIB=ON -DNDPI_WITH_GCRYPT=OFF
build-wrapper-linux-x86-64 --out-dir ${{ env.BUILD_WRAPPER_OUT_DIR }} cmake --build build/ --config Release
- - name: Run tests
- run: |
- for file in $(ls libnDPI/tests/cfgs/*/pcap/*.pcap libnDPI/tests/cfgs/*/pcap/*.pcapng libnDPI/tests/cfgs/*/pcap/*.cap); do \
- echo -n "${file} "; \
- ./build/nDPId-test "${file}" >/dev/null 2>/dev/null; \
- echo "[ok]"; \
- done
- - name: Collect coverage into one XML report
- run: |
- gcovr --sonarqube > coverage.xml
+# - name: Run tests
+# run: |
+# for file in $(ls libnDPI/tests/cfgs/*/pcap/*.pcap libnDPI/tests/cfgs/*/pcap/*.pcapng libnDPI/tests/cfgs/*/pcap/*.cap); do \
+# echo -n "${file} "; \
+# ./build/nDPId-test "${file}" >/dev/null 2>/dev/null; \
+# echo "[ok]"; \
+# done
+# - name: Collect coverage into one XML report
+# run: |
+# gcovr --sonarqube > coverage.xml
- name: Run sonar-scanner
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}