Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 17 additions & 11 deletions .github/workflows/pr-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand All @@ -45,6 +46,8 @@ jobs:
id: filter
with:
filters: |
versions:
- 'gradle/libs.versions.toml'
core:
- 'infra/core/**'
- 'infra/ui-base/**'
Expand Down Expand Up @@ -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:
Expand All @@ -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:
Expand All @@ -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:
Expand All @@ -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:
Expand All @@ -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:
Expand All @@ -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:
Expand All @@ -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:
Expand All @@ -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:
Expand All @@ -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:
Expand All @@ -252,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')