-
Notifications
You must be signed in to change notification settings - Fork 181
46 lines (46 loc) · 1.38 KB
/
ci-prq.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
43
44
45
46
name: PR Quality
on:
pull_request:
branches: [ main, '0.41', '0.42' ]
jobs:
quality:
name: JDK ${{ matrix.java }}
runs-on: ubuntu-latest
strategy:
matrix:
java: [ 8, 11, 17, 20 ]
steps:
- name: Checkout Code
uses: actions/checkout@v3
- name: Set up JDK ${{ matrix.java }}
uses: actions/setup-java@v3
with:
java-version: ${{ matrix.java }}
distribution: 'zulu'
cache: 'gradle'
- name: Print JDK Version
run: java -version
- name: Make gradlew Executable
run: chmod +x gradlew
- name: Documentation Linter
run: bash scripts/check-source-root.sh
- name: Build with Gradle
run: ./gradlew --parallel clean quality
- name: Upload CheckStyle Results
if: always()
uses: actions/upload-artifact@v3
with:
name: checkstyle-results-${{ matrix.java }}
path: '**/build/reports/checkstyle/*.xml'
- name: Upload PMD Results
if: always()
uses: actions/upload-artifact@v3
with:
name: pmd-results-${{ matrix.java }}
path: '**/build/reports/pmd/*.xml'
- name: Upload SpotBugs Results
if: always()
uses: actions/upload-artifact@v3
with:
name: spotbugs-results-${{ matrix.java }}
path: '**/build/reports/spotbugs/*.xml'