From d04df7b914bb44377047e1f015ab459979c153a6 Mon Sep 17 00:00:00 2001 From: Mattia Forcellese Date: Mon, 7 Oct 2024 19:49:22 +0200 Subject: [PATCH] chore: Configure gh actions to run on pull requests to test keycloak matrix compatibility --- .github/workflows/maven.yml | 8 +++++--- pom.xml | 2 +- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index 85c82d3..68205e2 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -6,7 +6,9 @@ name: Release Java Package on: push: tags: - - 'v*' # Only trigger on version tag pushes (e.g., v1.0.0) + - 'v*' # Trigger on version tag pushes (e.g., v1.0.0) + pull_request: + branches: [ main ] # Trigger on pull requests to main branch workflow_dispatch: jobs: @@ -14,7 +16,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - keycloak-version: [ '21.0.0', '22.0.0', '23.0.0', '24.0.0', '25.0.0' ] # List of Keycloak versions to test against + keycloak-version: [ '21.0.0', '22.0.0', '23.0.0', '24.0.0', '25.0.0', '26.0.0' ] # List of Keycloak versions to test against steps: # Checkouts the repository - name: Checkout repository @@ -32,7 +34,7 @@ jobs: runs-on: ubuntu-latest permissions: contents: write - + if: startsWith(github.ref, 'refs/tags/v') # Only run on version tags steps: - uses: actions/checkout@v4 - name: Set up JDK 17 diff --git a/pom.xml b/pom.xml index 560ad5e..bdca71a 100644 --- a/pom.xml +++ b/pom.xml @@ -6,7 +6,7 @@ it.mattiaforc spi-falco-event - 0.1.1 + 0.2.0 jar Keycloak Falco Event Listener