Skip to content

Commit

Permalink
chore: Configure gh actions to run on pull requests to test keycloak …
Browse files Browse the repository at this point in the history
…matrix compatibility
  • Loading branch information
Mattia Forcellese authored and Mattia Forcellese committed Oct 7, 2024
1 parent f42f15c commit d04df7b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,17 @@ 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:
test:
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
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>it.mattiaforc</groupId>
<artifactId>spi-falco-event</artifactId>
<version>0.1.1</version>
<version>0.2.0</version>
<packaging>jar</packaging>

<name>Keycloak Falco Event Listener</name>
Expand Down

0 comments on commit d04df7b

Please sign in to comment.