-
Notifications
You must be signed in to change notification settings - Fork 460
53 lines (46 loc) · 1.29 KB
/
Copy pathci.yml
File metadata and controls
53 lines (46 loc) · 1.29 KB
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
name: Backend CI
on:
push:
branches: [main, develop]
paths:
- '**/*.java'
- '**/*.xml'
- '**/*.yml'
- '**/*.yaml'
- '**/*.properties'
- '!mate-ui/**'
pull_request:
branches: [main]
paths:
- '**/*.java'
- '**/*.xml'
- '**/*.yml'
- '**/*.yaml'
- '**/*.properties'
- '!mate-ui/**'
jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Java 21
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 21
cache: maven
# -Pmonolith adds the profile-gated mate-monolith module to the reactor so
# the single-JVM composition (local-mode adapters, etc.) is compile-checked
# too — otherwise a breaking change to a shared starter or to mate-monolith
# slips through, since the default reactor excludes it.
- name: Compile (incl. profile-gated mate-monolith)
run: mvn clean compile -B -q -Pmonolith
- name: Run tests
run: mvn test -B -q
continue-on-error: true
- name: Check compilation result
run: |
echo "Build succeeded"
mvn dependency:tree -B -q -pl mate-gateway | head -5