forked from finos/architecture-as-code
-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (38 loc) · 1.32 KB
/
build-calm-hub-coverage.yml
File metadata and controls
45 lines (38 loc) · 1.32 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
name: Build Calm Hub For Unit Test Coverage
permissions:
contents: read
on:
pull_request:
branches:
- 'main'
- 'release*'
push:
branches:
- 'main'
- 'release*'
jobs:
build:
name: Build Calm Hub
runs-on: ubuntu-latest
steps:
# Step 1: Checkout PR Branch
- name: Checkout PR Branch
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5
# Step 2: Set up JDK
- name: Set up JDK
uses: actions/setup-java@dded0888837ed1f317902acf8a20df0ad188d165 # v5
with:
distribution: 'temurin'
java-version: '21'
# Step 3: Cache Maven Dependencies
- name: Cache Maven Dependencies
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('calm-hub/pom.xml') }}
restore-keys: |
${{ runner.os }}-m2-
# Step 4: Build and Test
- name: Build and Test
working-directory: calm-hub
run: mvn clean verify -Ddependency-check.skip=true