-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b5ba710
commit a1bfab2
Showing
1 changed file
with
49 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
name: Build and test | ||
|
||
on: | ||
push: | ||
branches: [main] | ||
paths: | ||
- "src/**" | ||
- "*.xml" | ||
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 | ||
with: | ||
distribution: "temurin" | ||
java-version: 17 | ||
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, latest] | ||
keycloak_dist: [quarkus] | ||
experimental: [false] | ||
include: | ||
- keycloak_version: nightly | ||
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 }} |