forked from databendlabs/databend-jdbc
-
Notifications
You must be signed in to change notification settings - Fork 0
54 lines (46 loc) · 1.24 KB
/
code-quality.yml
File metadata and controls
54 lines (46 loc) · 1.24 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
name: Code Quality Check
on:
pull_request:
types: [opened, synchronize, reopened]
branches: [ main, master ]
push:
branches: [ main, master ]
permissions:
contents: read
pull-requests: write
checks: write
actions: read
jobs:
checkstyle:
name: Run Checkstyle
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up JDK 11
uses: actions/setup-java@v4
with:
java-version: '11'
distribution: 'temurin'
cache: 'maven'
- name: Run Checkstyle
run: |
mvn checkstyle:checkstyle -B -q
continue-on-error: true
- name: Report Checkstyle results
uses: jwgmeligmeyling/checkstyle-github-action@master
if: always()
with:
path: '**/checkstyle-result.xml'
token: ${{ secrets.GITHUB_TOKEN }}
name: 'Checkstyle Report'
title: 'Checkstyle Results'
- name: Upload Checkstyle results
uses: actions/upload-artifact@v4
if: always()
with:
name: checkstyle-results
path: |
**/target/checkstyle-result.xml
**/target/site/checkstyle.html
retention-days: 7
if-no-files-found: warn