Add Migration Tests to CI workflow
This commit is contained in:
parent
075d913037
commit
7e95d57faa
2 changed files with 42 additions and 1 deletions
2
.github/actions/build-keycloak/action.yml
vendored
2
.github/actions/build-keycloak/action.yml
vendored
|
@ -69,7 +69,7 @@ runs:
|
|||
# By using "dependency:resolve", it will download all dependencies used in later stages for running the tests
|
||||
run: |
|
||||
MVN_HTTP_CONFIG="-Dhttp.keepAlive=false -Dmaven.wagon.http.pool=false -Dmaven.wagon.http.retryHandler.class=standard -Dmaven.wagon.http.retryHandler.count=3 -Dmaven.wagon.httpconnectionManager.ttlSeconds=120"
|
||||
./mvnw install dependency:resolve -nsu -B -e -DskipTests -DskipExamples $MVN_HTTP_CONFIG ${{ env.MVN_PROFILES}}
|
||||
./mvnw install dependency:resolve -nsu -V -B -e -DskipTests -DskipExamples $MVN_HTTP_CONFIG ${{ env.MVN_PROFILES}}
|
||||
|
||||
- id: compress-keycloak-maven-repository
|
||||
name: Compress Keycloak Maven artifacts
|
||||
|
|
41
.github/workflows/ci.yml
vendored
41
.github/workflows/ci.yml
vendored
|
@ -494,6 +494,46 @@ jobs:
|
|||
if: ${{ needs.conditional.outputs.sssd == 'true' }}
|
||||
run: .github/scripts/run-ipa.sh "${{ github.workspace }}"
|
||||
|
||||
migration-tests:
|
||||
name: Migration Tests
|
||||
runs-on: ubuntu-latest
|
||||
needs: build
|
||||
timeout-minutes: 45
|
||||
strategy:
|
||||
matrix:
|
||||
old-version: [19.0.3]
|
||||
database: [postgres, mysql, oracle, mssql, mariadb]
|
||||
fail-fast: false
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
- id: integration-test-setup
|
||||
name: Integration test setup
|
||||
uses: ./.github/actions/integration-test-setup
|
||||
|
||||
- name: Run Migration Tests
|
||||
run: |
|
||||
./mvnw clean install -Dsurefire.rerunFailingTestsCount=${{ env.SUREFIRE_RERUN_FAILING_COUNT }} -B \
|
||||
-Pauth-server-quarkus -Pdb-${{ matrix.database }} -Pauth-server-migration \
|
||||
-Dtest=MigrationTest \
|
||||
-Dmigration.mode=auto \
|
||||
-Dmigrated.auth.server.version=${{ matrix.old-version }} \
|
||||
-Dmigration.import.file.name=migration-realm-${{ matrix.old-version }}.json \
|
||||
-Dauth.server.ssl.required=false \
|
||||
-Dauth.server.db.host=localhost \
|
||||
-f testsuite/integration-arquillian/pom.xml | misc/log/trimmer.sh
|
||||
|
||||
- name: Upload JVM Heapdumps
|
||||
if: always()
|
||||
uses: ./.github/actions/upload-heapdumps
|
||||
|
||||
- uses: ./.github/actions/upload-flaky-tests
|
||||
name: Upload flaky tests
|
||||
env:
|
||||
GH_TOKEN: ${{ github.token }}
|
||||
with:
|
||||
job-name: Migration Tests
|
||||
|
||||
check-set-status:
|
||||
name: Set check conclusion
|
||||
needs:
|
||||
|
@ -510,6 +550,7 @@ jobs:
|
|||
- account-console-integration-tests
|
||||
- webauthn-integration-tests
|
||||
- sssd-unit-tests
|
||||
- migration-tests
|
||||
runs-on: ubuntu-latest
|
||||
outputs:
|
||||
conclusion: ${{ steps.check.outputs.conclusion }}
|
||||
|
|
Loading…
Reference in a new issue