keycloak-restrict-client-auth/.github/workflows/buildAndTest.yml

50 lines
1.4 KiB
YAML
Raw Normal View History

name: Build and test
2021-05-07 23:50:44 +02:00
on:
push:
branches: [ main ]
paths:
- 'src/**'
- '*.xml'
2021-05-07 23:50:44 +02:00
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v4
2021-05-07 23:50:44 +02:00
with:
2022-04-20 23:53:28 +02:00
distribution: 'temurin'
java-version: 17
2022-04-20 23:53:28 +02:00
cache: 'maven'
- name: Build
run: mvn -B clean package --file pom.xml
- name: Integration test
run: mvn -B failsafe:integration-test failsafe:verify --file pom.xml
compatibility:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
keycloak_version: [ 22.0.5, 23.0.0, 23.0.1, 23.0.2, 23.0.3, 23.0.4, latest ]
keycloak_dist: [quarkus]
experimental: [false]
include:
- keycloak_version: nightly
2022-04-21 00:42:34 +02:00
keycloak_dist: quarkus
experimental: true
continue-on-error: ${{ matrix.experimental }}
steps:
- uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: 17
cache: 'maven'
- name: Compatibility tests
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 }}