-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (41 loc) · 1.37 KB
/
Copy pathquality.yml
File metadata and controls
44 lines (41 loc) · 1.37 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
name: Quality Gates
on:
push:
branches: [ "main", "master" ]
pull_request:
branches: [ "main", "master" ]
permissions:
contents: read
jobs:
static-analysis:
name: Static analysis (no tests)
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- name: Set up JDK
uses: actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654 # v5.2.0
with:
distribution: temurin
java-version: 21
cache: maven
- name: Run static quality plugins
run: mvn -B -DskipTests checkstyle:check pmd:check spotbugs:check
- name: Upload checkstyle report
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: checkstyle-report
path: target/checkstyle-result.xml
if-no-files-found: ignore
- name: Upload pmd report
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: pmd-report
path: target/pmd.xml
if-no-files-found: ignore
- name: Upload spotbugs report
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: spotbugs-report
path: target/spotbugsXml.xml
if-no-files-found: ignore