Run store testing conditionally for PRs (#22070)

This commit is contained in:
Stian Thorgersen 2023-07-31 10:25:40 +02:00 committed by GitHub
parent e64269de70
commit c907fde7f5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 14 additions and 6 deletions

View file

@ -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

View file

@ -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