From b5c2e4936b52cec4874d74527f4ced4872942a06 Mon Sep 17 00:00:00 2001 From: Romain BOULLARD Date: Mon, 2 Feb 2026 06:18:26 +0000 Subject: [PATCH] StaticAnalysis (#11) SonarQube step only on push to main Trigger Infer/Clang-Tidy also in PR Reviewed-on: https://git.romainboullard.com/BigfootDev/Bigfoot/pulls/11 Co-authored-by: Romain BOULLARD Co-committed-by: Romain BOULLARD --- .gitea/workflows/sonarqube.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.gitea/workflows/sonarqube.yml b/.gitea/workflows/sonarqube.yml index 73cabfe..888ddb7 100644 --- a/.gitea/workflows/sonarqube.yml +++ b/.gitea/workflows/sonarqube.yml @@ -1,9 +1,9 @@ name: Bigfoot -on: - push: - branches: - - 'main' +pull_request: + branches: + - main + types: [opened, synchronize, reopened] jobs: build-and-test: @@ -35,6 +35,7 @@ jobs: run: infer run --compilation-database build/Debug/compile_commands.json - name: SonarQube Scan + if: github.event_name == 'push' uses: SonarSource/sonarqube-scan-action@v7.0.0 with: args: >