chore: Add compatibility tests for older Keycloak versions
This commit is contained in:
parent
b1ad5c493b
commit
5eac7d6de3
1 changed files with 22 additions and 3 deletions
25
.github/workflows/buildAndTest.yml
vendored
25
.github/workflows/buildAndTest.yml
vendored
|
@ -8,9 +8,7 @@ on:
|
|||
|
||||
jobs:
|
||||
build:
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Set up JDK 11
|
||||
|
@ -27,5 +25,26 @@ jobs:
|
|||
${{ runner.os }}-maven-
|
||||
- name: Build
|
||||
run: mvn -B clean package --file pom.xml
|
||||
- name: Integration Test
|
||||
- name: Integration test
|
||||
run: mvn -B failsafe:integration-test failsafe:verify --file pom.xml
|
||||
compatibility:
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
matrix:
|
||||
keycloak: [ 12.0.4, 13.0.1, 14.0.0 ]
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Set up JDK 11
|
||||
uses: actions/setup-java@v2
|
||||
with:
|
||||
distribution: 'adopt'
|
||||
java-version: 11
|
||||
- name: Cache maven repository
|
||||
uses: actions/cache@v2
|
||||
with:
|
||||
path: ~/.m2/repository
|
||||
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-maven-
|
||||
- name: Compatibility tests
|
||||
run: mvn -B clean test-compile failsafe:integration-test failsafe:verify --file pom.xml -Dversion.keycloak=${{ matrix.keycloak }}
|
||||
|
|
Loading…
Reference in a new issue