diff --git a/.github/workflows/checks.yml b/.github/workflows/checks.yml index 5a7d85a5be7..2467c907758 100644 --- a/.github/workflows/checks.yml +++ b/.github/workflows/checks.yml @@ -3,14 +3,19 @@ name: checks on: push: branches: - - master - main pull_request: jobs: lint: runs-on: ubuntu-22.04 + uses: ./.github/workflows/repolinter.yml gradle-wrapper: runs-on: ubuntu-22.04 + uses: ./.github/workflows/gradle-wrapper-validation.yml spotless: - runs-on: ubuntu-22.04 \ No newline at end of file + runs-on: ubuntu-22.04 + uses: ./.github/workflows/spotless.yml + compile: + runs-on: ubuntu-22.04 + uses: ./.github/workflows/compile.yml \ No newline at end of file diff --git a/.github/workflows/compile.yml b/.github/workflows/compile.yml index a53212cdd34..a7f59a3a252 100644 --- a/.github/workflows/compile.yml +++ b/.github/workflows/compile.yml @@ -1,8 +1,6 @@ name: compile on: - push: - branches: [ main ] - pull_request: + workflow_call: env: GRADLE_OPTS: "-Xmx6g -Dorg.gradle.daemon=false" diff --git a/.github/workflows/gradle-wrapper-validation.yml b/.github/workflows/gradle-wrapper-validation.yml index 95c4c26bcd3..bcad0841949 100644 --- a/.github/workflows/gradle-wrapper-validation.yml +++ b/.github/workflows/gradle-wrapper-validation.yml @@ -1,10 +1,8 @@ # SPDX-License-Identifier: Apache-2.0 name: gradle-wrapper-validation on: - push: - branches: [ main ] - pull_request: - workflow_dispatch: + workflow_call: + jobs: validation: diff --git a/.github/workflows/repolinter.yml b/.github/workflows/repolinter.yml index 11c5886352e..cfba5a89cde 100644 --- a/.github/workflows/repolinter.yml +++ b/.github/workflows/repolinter.yml @@ -3,11 +3,8 @@ name: repolinter on: - push: - branches: - - master - - main - pull_request: + workflow_call: + jobs: lint: diff --git a/.github/workflows/spotless.yml b/.github/workflows/spotless.yml index c53681454d4..f1814fdccfa 100644 --- a/.github/workflows/spotless.yml +++ b/.github/workflows/spotless.yml @@ -1,8 +1,7 @@ name: spotless on: - push: - branches: [ main ] - pull_request: + workflow_call: + jobs: spotless: diff --git a/.github/workflows/unit-tests.yml b/.github/workflows/unit-tests.yml index 5df811c0815..fc7833f7a40 100644 --- a/.github/workflows/unit-tests.yml +++ b/.github/workflows/unit-tests.yml @@ -1,7 +1,7 @@ name: unit-tests on: workflow_run: - workflows: [ repolinter, spotless, gradle-wrapper-validation, compile] + workflows: [ checks ] env: GRADLE_OPTS: "-Xmx6g -Dorg.gradle.daemon=false"