From bde69b46aa036a344fd989a7ef423ecff3ba4a46 Mon Sep 17 00:00:00 2001 From: Romain BOULLARD Date: Fri, 30 Jan 2026 15:45:47 +0100 Subject: [PATCH] test sonar analysis --- .gitea/workflows/sonarqube.yml | 37 ++++++++++++++++++++++++++++++++++ conanfile.py | 2 +- sonar-project.properties | 10 +++++++++ 3 files changed, 48 insertions(+), 1 deletion(-) create mode 100644 .gitea/workflows/sonarqube.yml create mode 100644 sonar-project.properties diff --git a/.gitea/workflows/sonarqube.yml b/.gitea/workflows/sonarqube.yml new file mode 100644 index 0000000..15bacf8 --- /dev/null +++ b/.gitea/workflows/sonarqube.yml @@ -0,0 +1,37 @@ +name: Bigfoot + +on: + push: + branches: + - '**' + workflow_dispatch: + +jobs: + build-and-test: + runs-on: ubuntu-latest + timeout-minutes: 120 + container: + image: git.romainboullard.com/bigfootdev/linuxbigfootbuilder:main + name: "Sonarqube" + steps: + - name: Install Node.js + run: apt-get update && apt-get install -y nodejs + + - name: Checkout repository + uses: actions/checkout@v6 + with: + submodules: recursive + + - name: Generate + run: | + conan install . --deployer=full_deploy --deployer-folder=build --remote=bigfootpackages -pr:h=clang -pr:b=clang --build=missing -s build_type=Debug -o bigfoot/*:build_tests=True -o bigfoot/*:tracy=False -o bigfoot/*:build_tools=True -o bigfoot/*:vulkan=True -o bigfoot/*:build_benchmarks=True + cmake -S . -B ./build/Debug --toolchain ./build/Debug/generators/conan_toolchain.cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_UNITY_BUILD=Debug -G "Ninja" + + - name: Clang-Tidy + run: run-clang-tidy -p ./build/Debug/ >> tidy_result + + - name: SonarQube Scan + uses: SonarSource/sonarqube-scan-action@7.0.0 + env: + SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} + SONAR_HOST: ${{ secrets.SONAR_HOST }} \ No newline at end of file diff --git a/conanfile.py b/conanfile.py index 5e7c205..ffad6ab 100644 --- a/conanfile.py +++ b/conanfile.py @@ -65,7 +65,7 @@ class Bigfoot(ConanFile): self.requires("eastl/3.27.01@bigfootdev/main", transitive_headers=True) self.requires("unordered_dense/4.8.1@bigfootdev/main", transitive_headers=True) self.requires("mimalloc/3.1.5@bigfootdev/main", transitive_headers=True) - self.requires("stduuid/1.2.3", transitive_headers=True) + self.requires("stduuid/1.2.3@bigfootdev/main", transitive_headers=True) self.requires("sqlite3/3.51.0@bigfootdev/main", transitive_headers=True) self.requires("cli11/2.6.0") self.requires("rapidhash/3.0@bigfootdev/main", transitive_headers=True) diff --git a/sonar-project.properties b/sonar-project.properties new file mode 100644 index 0000000..d2fc0e0 --- /dev/null +++ b/sonar-project.properties @@ -0,0 +1,10 @@ +sonar.projectKey=Bigfoot + +sonar.projectVersion=0.1.0 + +sonar.sourceEncoding=UTF-8 + +sonar.sources=Bigfoot/Sources +sonar.tests=Bigfoot/Tests + +sonar.cxx.clangtidy.reportPaths=tidy_result \ No newline at end of file