From e712bf6c8e57a1c537b351a85c6f15b0749b1e32 Mon Sep 17 00:00:00 2001 From: sithlord48 Date: Wed, 12 Nov 2025 08:23:33 -0500 Subject: [PATCH] ci: Skip sonarcloud when the changes will not change the scan results --- .github/workflows/sonarcloud-analysis.yml | 23 +++++++++++++++-------- 1 file changed, 15 insertions(+), 8 deletions(-) diff --git a/.github/workflows/sonarcloud-analysis.yml b/.github/workflows/sonarcloud-analysis.yml index 10c5260cc..341739148 100644 --- a/.github/workflows/sonarcloud-analysis.yml +++ b/.github/workflows/sonarcloud-analysis.yml @@ -6,16 +6,23 @@ on: workflow_dispatch: pull_request: types: [opened, synchronize, reopened, ready_for_review] - paths-ignore: - - "**/*.md" - - ".github/ISSUE_TEMPLATE/**" - - ".editorconfig" - - ".env-example" - - ".gitignore" - - ".gitattributes" - - "cspell.json" + paths: + - '.github/workflows/sonarcloud-analysis.yml' + - 'sonar-project.properties' + - 'cmake/Libraries.cmake' + - 'CMakeLists.txt' + - 'src/**' + - '!src/res/**' + - '!src/unittests/**' push: branches: [master] + paths: + - '.github/workflows/codeql-analysis.yml' + - 'cmake/Libraries.cmake' + - 'CMakeLists.txt' + - 'src/**' + - '!src/res/**' + - '!src/unittests/**' jobs: analyze: