-
Notifications
You must be signed in to change notification settings - Fork 1
42 lines (35 loc) · 1.01 KB
/
code-quality-checks.yml
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: Code quality checks
on:
push:
branches:
- main
pull_request:
types: [opened, synchronize, reopened]
jobs:
Code-Quality-Checks:
runs-on: ubuntu-latest
steps:
- run: echo "🔎 Checking code quality of repository ${{ github.repository }}."
- name: 'Checkout'
uses: actions/checkout@v2
- name: 'Setup Java 21'
uses: actions/setup-java@v1
with:
java-version: 21
- name: Cache Maven packages
uses: actions/cache@v1
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2
- name: Run Coverage
run: |
./mvnw verify
- name: Add coverage to PR
id: jacoco
uses: madrapps/jacoco-report@v1.6.1
with:
paths: ${{github.workspace}}/target/site/jacoco-ut/jacoco.xml
token: ${{ secrets.GITHUB_TOKEN }}
min-coverage-overall: 40
min-coverage-changed-files: 60