2021-05-09 19:15:45 +02:00
|
|
|
name: Build and test
|
2021-05-07 23:50:44 +02:00
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: [ main ]
|
2021-12-11 18:30:28 +01:00
|
|
|
paths:
|
|
|
|
- 'src/**'
|
|
|
|
- '*.xml'
|
2021-05-07 23:50:44 +02:00
|
|
|
pull_request:
|
|
|
|
branches: [ main ]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2022-03-07 13:12:29 +01:00
|
|
|
- uses: actions/checkout@v3
|
2021-05-07 23:50:44 +02:00
|
|
|
- name: Set up JDK 11
|
2022-04-11 14:23:33 +02:00
|
|
|
uses: actions/setup-java@v3
|
2021-05-07 23:50:44 +02:00
|
|
|
with:
|
2022-04-20 23:53:28 +02:00
|
|
|
distribution: 'temurin'
|
2021-05-07 23:50:44 +02:00
|
|
|
java-version: 11
|
2022-04-20 23:53:28 +02:00
|
|
|
cache: 'maven'
|
2021-09-19 19:55:47 +02:00
|
|
|
- name: Build
|
2021-05-09 19:15:45 +02:00
|
|
|
run: mvn -B clean package --file pom.xml
|
2021-09-19 20:13:38 +02:00
|
|
|
- name: Integration test
|
2021-09-19 19:55:47 +02:00
|
|
|
run: mvn -B failsafe:integration-test failsafe:verify --file pom.xml
|
2021-09-19 20:13:38 +02:00
|
|
|
compatibility:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
strategy:
|
2021-09-19 20:25:17 +02:00
|
|
|
fail-fast: false
|
2021-09-19 20:13:38 +02:00
|
|
|
matrix:
|
2022-10-06 21:45:19 +02:00
|
|
|
keycloak_version: [ 19.0.3, latest ]
|
2022-04-21 00:39:12 +02:00
|
|
|
keycloak_dist: [quarkus, wildfly]
|
|
|
|
experimental: [false]
|
2022-04-21 00:25:53 +02:00
|
|
|
include:
|
|
|
|
- keycloak_version: nightly
|
2022-04-21 00:42:34 +02:00
|
|
|
keycloak_dist: quarkus
|
2022-04-21 00:25:53 +02:00
|
|
|
experimental: true
|
|
|
|
continue-on-error: ${{ matrix.experimental }}
|
2021-09-19 20:13:38 +02:00
|
|
|
steps:
|
2022-03-07 13:12:29 +01:00
|
|
|
- uses: actions/checkout@v3
|
2021-09-19 20:13:38 +02:00
|
|
|
- name: Set up JDK 11
|
2022-04-11 14:23:33 +02:00
|
|
|
uses: actions/setup-java@v3
|
2021-09-19 20:13:38 +02:00
|
|
|
with:
|
2022-04-21 00:25:53 +02:00
|
|
|
distribution: 'temurin'
|
2021-09-19 20:13:38 +02:00
|
|
|
java-version: 11
|
2022-04-21 00:25:53 +02:00
|
|
|
cache: 'maven'
|
2021-09-19 20:13:38 +02:00
|
|
|
- name: Compatibility tests
|
2021-11-03 23:17:15 +01:00
|
|
|
run: mvn -B -U clean test-compile failsafe:integration-test failsafe:verify --file pom.xml -Dkeycloak.version=${{ matrix.keycloak_version }} -Dkeycloak.dist=${{ matrix.keycloak_dist }}
|