Repository navigation
66 lines (55 loc) · 1.54 KB
/
Copy pathci.yml
File metadata and controls
66 lines (55 loc) · 1.54 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
54
55
56
57
58
59
60
61
62
63
64
65
66
name: CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_dispatch:
jobs:
build-and-test:
runs-on: ubuntu-latest
name: Build and Test (workflow-engine, spring-boot-starter)
steps:
- name: Checkout code
uses: actions/checkout@v5
- name: Set up JDK 17
uses: actions/setup-java@v5
with:
java-version: '17'
distribution: 'temurin'
cache: 'maven'
- name: Build and test core modules
run: |
mvn -B clean verify \
-pl workflow-engine,spring-boot-starter \
-am \
-DskipTests=false
- name: Upload test reports
if: always()
uses: actions/upload-artifact@v6
with:
name: test-reports
path: |
workflow-engine/target/surefire-reports/
spring-boot-starter/target/surefire-reports/
retention-days: 7
samples-compilation-check:
runs-on: ubuntu-latest
name: Direct sample release gate
steps:
- name: Checkout code
uses: actions/checkout@v5
- name: Set up JDK 17
uses: actions/setup-java@v5
with:
java-version: '17'
distribution: 'temurin'
cache: 'maven'
- name: Build and test samples
run: mvn -B -pl samples -am verify
- name: Upload sample test reports
if: always()
uses: actions/upload-artifact@v6
with:
name: direct-sample-test-reports
path: samples/target/surefire-reports/