Skip to content

Commit

Permalink
Conditionally run Quarkus tests
Browse files Browse the repository at this point in the history
Closes keycloak#29118

Signed-off-by: Václav Muzikář <[email protected]>
  • Loading branch information
vmuzikar committed Apr 29, 2024
1 parent 5135262 commit 4d2a4c5
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 9 deletions.
3 changes: 3 additions & 0 deletions .github/actions/conditional/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ outputs:
ci:
description: Should "ci.yml" execute
value: ${{ steps.changes.outputs.ci }}
ci-quarkus:
description: Should "ci.yml" execute
value: ${{ steps.changes.outputs.ci-quarkus }}
ci-store:
description: Should "ci.yml" execute
value: ${{ steps.changes.outputs.ci-store }}
Expand Down
16 changes: 9 additions & 7 deletions .github/actions/conditional/conditions
Original file line number Diff line number Diff line change
Expand Up @@ -2,27 +2,29 @@
#
# To test a pattern run '.github/actions/conditional/conditional.sh <remote name> <branch>'

.github/actions/ ci ci-store ci-sssd operator js codeql-java codeql-themes guides documentation
.github/scripts/ ci ci-sssd
.github/actions/ ci ci-quarkus ci-store ci-sssd operator js codeql-java codeql-themes guides documentation
.github/scripts/ ci ci-quarkus ci-sssd
.github/scripts/ansible/ ci-store
.github/scripts/aws/ ci-store

.github/workflows/ci.yml ci ci-store ci-sssd
.github/workflows/ci.yml ci ci-quarkus ci-store ci-sssd
.github/workflows/operator-ci.yml operator
.github/workflows/js-ci.yml js
.github/workflows/codeql-analysis.yml codeql-java codeql-themes
.github/workflows/guides.yml guides
.github/workflows/documentation.yml documentation

.mvn/ ci ci-store ci-sssd operator js codeql-java codeql-themes guides documentation
mvnw ci ci-store ci-sssd operator js codeql-java codeql-themes guides documentation
mvnw.cmd ci ci-store ci-sssd operator js codeql-java codeql-themes guides documentation
.mvn/ ci ci-quarkus ci-store ci-sssd operator js codeql-java codeql-themes guides documentation
mvnw ci ci-quarkus ci-store ci-sssd operator js codeql-java codeql-themes guides documentation
mvnw.cmd ci ci-quarkus ci-store ci-sssd operator js codeql-java codeql-themes guides documentation

*/src/main/ ci operator
*/src/test/ ci operator
pom.xml ci ci-store operator
pom.xml ci ci-quarkus ci-store operator
federation/sssd/ ci ci-sssd

quarkus/ ci-quarkus guides

model/ ci-store
operator/ operator

Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ jobs:
runs-on: ubuntu-latest
outputs:
ci: ${{ steps.conditional.outputs.ci }}
ci-quarkus: ${{ steps.conditional.outputs.ci-quarkus }}
ci-store: ${{ steps.conditional.outputs.ci-store }}
ci-sssd: ${{ steps.conditional.outputs.ci-sssd }}
ci-store-matrix: ${{ steps.conditional-stores.outputs.matrix }}
Expand Down Expand Up @@ -174,7 +175,8 @@ jobs:

quarkus-unit-tests:
name: Quarkus UT
needs: build
needs: [build, conditional]
if: needs.conditional.outputs.ci-quarkus == 'true'
timeout-minutes: 15
strategy:
matrix:
Expand Down Expand Up @@ -204,7 +206,8 @@ jobs:

quarkus-integration-tests:
name: Quarkus IT
needs: build
needs: [build, conditional]
if: needs.conditional.outputs.ci-quarkus == 'true'
timeout-minutes: 115
strategy:
matrix:
Expand Down

0 comments on commit 4d2a4c5

Please sign in to comment.