-
Notifications
You must be signed in to change notification settings - Fork 0
60 lines (49 loc) · 1.29 KB
/
Copy pathci.yml
File metadata and controls
60 lines (49 loc) · 1.29 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
name: CI
on:
push:
branches: [ main, master, develop ]
pull_request:
branches: [ main, master ]
workflow_dispatch:
permissions:
contents: read
jobs:
build:
name: Build & Test
runs-on: ubuntu-latest
strategy:
matrix:
java: [ '25' ]
steps:
- name: Checkout
uses: actions/checkout@v7
- name: Set up JDK ${{ matrix.java }}
uses: actions/setup-java@v5
with:
java-version: ${{ matrix.java }}
distribution: 'temurin'
cache: maven
- name: Build and Test
run: ./mvnw clean verify --batch-mode --no-transfer-progress
- name: Upload Coverage Report
if: matrix.java == '25'
uses: actions/upload-artifact@v4
with:
name: coverage-report
path: '**/target/site/jacoco/'
retention-days: 7
quality:
name: Code Quality
runs-on: ubuntu-latest
needs: build
steps:
- name: Checkout
uses: actions/checkout@v7
- name: Set up JDK 25
uses: actions/setup-java@v5
with:
java-version: '25'
distribution: 'temurin'
cache: maven
- name: Code Quality Checks
run: ./mvnw compile checkstyle:check pmd:check spotbugs:check --batch-mode --no-transfer-progress