From 12e459d1904cbae626a2d7d07f2eacbecd5a0fbb Mon Sep 17 00:00:00 2001 From: Sergejs Luhmirins Date: Mon, 19 Jan 2026 11:49:27 +0200 Subject: [PATCH 1/2] Run all tests if any version was updated --- .github/workflows/pr-checks.yml | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/.github/workflows/pr-checks.yml b/.github/workflows/pr-checks.yml index d3f6404585..69368bb058 100644 --- a/.github/workflows/pr-checks.yml +++ b/.github/workflows/pr-checks.yml @@ -27,6 +27,7 @@ jobs: name: Check code changes runs-on: ubuntu-latest outputs: + versions: ${{ steps.filter.outputs.versions }} core: ${{ steps.filter.outputs.core }} infra1: ${{ steps.filter.outputs.infra1 }} infra2: ${{ steps.filter.outputs.infra2 }} @@ -45,6 +46,8 @@ jobs: id: filter with: filters: | + versions: + - 'gradle/libs.versions.toml' core: - 'infra/core/**' - 'infra/ui-base/**' @@ -100,7 +103,7 @@ jobs: core-unit-tests: name: Core Unit Tests needs: changes - if: needs.changes.outputs.core == 'true' + if: needs.changes.outputs.core == 'true' || needs.changes.outputs.versions == 'true' uses: ./.github/workflows/reusable-run-unit-tests.yml secrets: inherit with: @@ -116,7 +119,7 @@ jobs: infra-unit-tests-1: name: Infra Unit Tests 1 needs: changes - if: needs.changes.outputs.infra1 == 'true' + if: needs.changes.outputs.infra1 == 'true' || needs.changes.outputs.versions == 'true' uses: ./.github/workflows/reusable-run-unit-tests.yml secrets: inherit with: @@ -134,7 +137,7 @@ jobs: infra-unit-tests-2: name: Infra Unit Tests 2 needs: changes - if: needs.changes.outputs.infra2 == 'true' + if: needs.changes.outputs.infra2 == 'true' || needs.changes.outputs.versions == 'true' uses: ./.github/workflows/reusable-run-unit-tests.yml secrets: inherit with: @@ -151,7 +154,7 @@ jobs: feature-unit-tests1: name: Feature Unit Tests 1 needs: changes - if: needs.changes.outputs.feature1 == 'true' + if: needs.changes.outputs.feature1 == 'true' || needs.changes.outputs.versions == 'true' uses: ./.github/workflows/reusable-run-unit-tests.yml secrets: inherit with: @@ -168,7 +171,7 @@ jobs: feature-unit-tests2: name: Feature Unit Tests 2 needs: changes - if: needs.changes.outputs.feature2 == 'true' + if: needs.changes.outputs.feature2 == 'true' || needs.changes.outputs.versions == 'true' uses: ./.github/workflows/reusable-run-unit-tests.yml secrets: inherit with: @@ -186,7 +189,7 @@ jobs: feature-dashboard-unit-tests: name: Feature Dashboard Unit Tests needs: changes - if: needs.changes.outputs.dashboard == 'true' + if: needs.changes.outputs.dashboard == 'true' || needs.changes.outputs.versions == 'true' uses: ./.github/workflows/reusable-run-unit-tests.yml secrets: inherit with: @@ -198,7 +201,7 @@ jobs: face-unit-tests: name: Face Unit Tests needs: changes - if: needs.changes.outputs.face == 'true' + if: needs.changes.outputs.face == 'true' || needs.changes.outputs.versions == 'true' uses: ./.github/workflows/reusable-run-unit-tests.yml secrets: inherit with: @@ -214,7 +217,7 @@ jobs: fingerprint-unit-tests: name: Fingerprint Unit Tests needs: changes - if: needs.changes.outputs.fingerprint == 'true' + if: needs.changes.outputs.fingerprint == 'true' || needs.changes.outputs.versions == 'true' uses: ./.github/workflows/reusable-run-unit-tests.yml secrets: inherit with: @@ -232,7 +235,7 @@ jobs: testing-tools: name: Testing Tools unit tests needs: changes - if: needs.changes.outputs.testing == 'true' + if: needs.changes.outputs.testing == 'true' || needs.changes.outputs.versions == 'true' uses: ./.github/workflows/reusable-run-unit-tests.yml secrets: inherit with: From 5794665975894f2d9cb58a3a4ace779e95866d6d Mon Sep 17 00:00:00 2001 From: Sergejs Luhmirins Date: Mon, 19 Jan 2026 11:55:42 +0200 Subject: [PATCH 2/2] Do not run sonar on bot PRs --- .github/workflows/pr-checks.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pr-checks.yml b/.github/workflows/pr-checks.yml index 69368bb058..5fe5ce0a91 100644 --- a/.github/workflows/pr-checks.yml +++ b/.github/workflows/pr-checks.yml @@ -255,10 +255,13 @@ jobs: fingerprint-unit-tests, testing-tools ] uses: ./.github/workflows/reusable-sonar-scan.yml - # Only run if the PR ready for review or triggered manually, and if tests passed or matched 'skipped' status (due to smart filter) - # always() calls is required to prevent a hidden success() check being added + # Only run if the PR ready for review or triggered manually, and if tests passed or matched 'skipped' status (due to smart filter). + # always() calls is required to prevent a hidden success() check being added. + # Skipping any PRs made by bots. if: > always() && (github.event.pull_request.draft == false || github.event_name == 'workflow_dispatch') && + !startsWith(github.head_ref, 'dependabot') && + !contains(github.actor, '[bot]') && !contains(needs.*.result, 'failure') && !contains(needs.*.result, 'cancelled')