-
Notifications
You must be signed in to change notification settings - Fork 206
42 lines (42 loc) · 1.07 KB
/
ci.yml
File metadata and controls
42 lines (42 loc) · 1.07 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
name: CI
on:
workflow_call:
inputs:
branch:
required: true
type: string
jdk:
default: 8
type: string
os:
default: ubuntu-latest
type: string
profile:
type: string
module:
required: true
type: string
deploy:
type: boolean
jobs:
Test:
name: Run tests
runs-on: ${{ inputs.os }}
env:
PROFILE_ARG: ${{ inputs.profile && format('-P {0}', inputs.profile) || '' }}
steps:
- name: Checkout
uses: actions/checkout@v6
with:
ref: ${{ inputs.branch }}
- name: Install JDK
uses: actions/setup-java@v5
with:
java-version: ${{ inputs.jdk }}
distribution: temurin
- name: Build without tests
run: |
mvn -s .github/maven-ci-settings.xml -q clean install -B $PROFILE_ARG -pl :${{ inputs.module }} -am -DskipTests
- name: Run tests for the target module
run: |
mvn -s .github/maven-ci-settings.xml verify -B $PROFILE_ARG -pl :${{ inputs.module }}