Repository navigation
49 lines (49 loc) · 1.42 KB
/
Copy pathci.yml
File metadata and controls
49 lines (49 loc) · 1.42 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
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 -Pcheckstyle $PROFILE_ARG -pl :${{ inputs.module }}
- name: Upload jstack dumps
if: always()
uses: actions/upload-artifact@v4
with:
name: jstack-${{ inputs.module }}-jdk${{ inputs.jdk }}${{ inputs.profile && format('-{0}', inputs.profile) || '' }}
path: '**/target/surefire-reports/surefire-timeout-jstack*.txt'
if-no-files-found: ignore