-
Notifications
You must be signed in to change notification settings - Fork 28
77 lines (66 loc) · 2 KB
/
ci.yml
File metadata and controls
77 lines (66 loc) · 2 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
67
68
69
70
71
72
73
74
75
76
77
name: CI
on:
push:
branches: [ main, develop ]
pull_request:
branches: [ main, develop ]
jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 30
strategy:
matrix:
java-version: ['21','17']
steps:
- name: Checkout
uses: actions/checkout@v5
- name: Setup Java ${{ matrix.java-version }}
uses: actions/setup-java@v5
with:
distribution: temurin
java-version: ${{ matrix.java-version }}
cache: maven
- name: Make release script executable
run: chmod +x scripts/release.sh
- name: Build and test (skip Docker ITs)
if: matrix.java-version == '21'
run: scripts/release.sh verify --no-docker
- name: Validate POM only on JDK 17 (project targets 21)
if: matrix.java-version == '17'
run: mvn -s .mvn/settings.xml -q -N validate
- name: Upload test reports and coverage (if present)
if: always()
uses: actions/upload-artifact@v6
with:
name: reports-jdk-${{ matrix.java-version }}
if-no-files-found: ignore
path: |
**/target/surefire-reports/**
**/target/failsafe-reports/**
**/target/site/jacoco/**
integration-tests:
name: Integration tests (Docker)
runs-on: ubuntu-latest
needs: build
if: github.event_name == 'push'
timeout-minutes: 45
steps:
- name: Checkout
uses: actions/checkout@v5
- name: Setup Java 21
uses: actions/setup-java@v5
with:
distribution: temurin
java-version: '21'
cache: maven
- name: Run full verify (with Testcontainers)
run: mvn -s .mvn/settings.xml -q clean verify
- name: Upload IT reports and coverage
if: always()
uses: actions/upload-artifact@v6
with:
name: reports-integration
if-no-files-found: ignore
path: |
**/target/failsafe-reports/**
**/target/site/jacoco/**