generated from finos-labs/project-blueprint
-
Notifications
You must be signed in to change notification settings - Fork 38
48 lines (41 loc) · 1.05 KB
/
build-calm-hub.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
40
41
42
43
44
45
46
47
48
name: Build Calm Hub
on:
pull_request:
branches:
- "main"
paths:
- "calm-hub/**"
push:
branches:
- "main"
paths:
- "calm-hub/**"
jobs:
build:
name: Build Calm Hub
runs-on: ubuntu-latest
steps:
# Step 1: Checkout PR Branch
- name: Checkout PR Branch
uses: actions/checkout@v4
# Step 2: Set up JDK
- name: Set up JDK
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '21'
# Step 3: Cache Maven Dependencies
- name: Cache Maven Dependencies
uses: actions/cache@v3
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('calm-hub/pom.xml') }}
restore-keys: |
${{ runner.os }}-m2-
# Step 4: Set up Docker (Required for Testcontainers)
- name: Set up Docker
uses: docker/setup-buildx-action@v2
# Step 5: Build and Test
- name: Build and Test
working-directory: calm-hub
run: mvn -P integration clean verify