Run store testing conditionally for PRs (#22070)
This commit is contained in:
parent
e64269de70
commit
c907fde7f5
2 changed files with 14 additions and 6 deletions
8
.github/actions/conditional/conditions
vendored
8
.github/actions/conditional/conditions
vendored
|
@ -2,10 +2,10 @@
|
|||
#
|
||||
# To test a pattern run '.github/actions/conditional/conditional.sh <remote name> <branch>'
|
||||
|
||||
.github/actions/ ci operator js codeql-java codeql-themes guides documentation ci-sssd
|
||||
.github/actions/ ci ci-store ci-sssd operator js codeql-java codeql-themes guides documentation
|
||||
.github/scripts/ ci ci-sssd
|
||||
|
||||
.github/workflows/ci.yml ci ci-sssd
|
||||
.github/workflows/ci.yml ci 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
|
||||
|
@ -14,9 +14,11 @@
|
|||
|
||||
*/src/main/ ci operator
|
||||
*/src/test/ ci operator
|
||||
pom.xml ci operator
|
||||
pom.xml ci ci-store operator
|
||||
federation/sssd/ ci ci-sssd
|
||||
|
||||
model/ ci-store
|
||||
|
||||
docs/guides/ guides
|
||||
docs/documentation/ documentation
|
||||
|
||||
|
|
12
.github/workflows/ci.yml
vendored
12
.github/workflows/ci.yml
vendored
|
@ -29,6 +29,7 @@ jobs:
|
|||
runs-on: ubuntu-latest
|
||||
outputs:
|
||||
ci: ${{ steps.conditional.outputs.ci }}
|
||||
ci-store: ${{ steps.conditional.outputs.ci-store }}
|
||||
ci-sssd: ${{ steps.conditional.outputs.ci-sssd }}
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
@ -199,6 +200,8 @@ jobs:
|
|||
databases-new-store:
|
||||
name: Databases New Store
|
||||
runs-on: ubuntu-latest
|
||||
needs: [conditional]
|
||||
if: needs.conditional.outputs.ci-store == 'true'
|
||||
steps:
|
||||
- id: matrix-db
|
||||
# language=bash
|
||||
|
@ -214,7 +217,8 @@ jobs:
|
|||
|
||||
new-store-integration-tests:
|
||||
name: New Store IT
|
||||
needs: [build, databases-new-store]
|
||||
needs: [conditional, build, databases-new-store]
|
||||
if: needs.conditional.outputs.ci-store == 'true'
|
||||
runs-on: ubuntu-latest
|
||||
# Currently, the run of CockroachDB (only branches and nightly runs) is the longest with 50-60 minutes
|
||||
timeout-minutes: 90
|
||||
|
@ -254,7 +258,8 @@ jobs:
|
|||
|
||||
legacy-store-integration-tests:
|
||||
name: Legacy Store IT
|
||||
needs: build
|
||||
needs: [build, conditional]
|
||||
if: needs.conditional.outputs.ci-store == 'true'
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 75
|
||||
strategy:
|
||||
|
@ -288,7 +293,8 @@ jobs:
|
|||
store-model-tests:
|
||||
name: Store Model Tests
|
||||
runs-on: ubuntu-latest
|
||||
needs: build
|
||||
needs: [build, conditional]
|
||||
if: needs.conditional.outputs.ci-store == 'true'
|
||||
timeout-minutes: 75
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
|
Loading…
Reference in a new issue