-
Notifications
You must be signed in to change notification settings - Fork 73
39 lines (38 loc) · 1.2 KB
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: Build project with Maven
on:
pull_request:
push:
schedule:
- cron: '2 2 * * 1-5' # run nightly master builds on weekdays
jobs:
build:
runs-on: ubuntu-24.04
services:
keycloak:
image: quay.io/keycloak/keycloak:19.0.3-legacy
env:
KEYCLOAK_USER: keycloak
KEYCLOAK_PASSWORD: keycloak1!
DB_VENDOR: h2
ports: [ 8443/tcp ]
options: --health-cmd "curl -Iks https://localhost:8443" --health-interval 10s --health-timeout 5s --health-retries 5
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Java setup
uses: actions/setup-java@v4
with:
java-version: 17
distribution: temurin
- name: Cache
uses: actions/cache@8469c94c6a180dfb41a1bd7e1b46ac557ea124f1 # pin@v2
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
- name: Run Maven
env:
KEYCLOAK_URL: https://localhost:${{ job.services.keycloak.ports[8443] }}/auth
KEYCLOAK_ENFORCE_SUBGROUPS_IN_GROUP_QUERY: false
run: mvn -B clean install com.mycila:license-maven-plugin:check