-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (38 loc) · 1.17 KB
/
checkstyle.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
name: status-checks
on:
pull_request:
branches:
- main
jobs:
checkstyle:
name: checkstyle
runs-on: ubuntu-latest # ubuntu-22.04
strategy:
matrix:
java: [ 17 ]
steps:
###########################################
## Checkout
###########################################
- name: Checkout repository
uses: actions/checkout@v4
###########################################
## Set up Java
###########################################
- name: Set up JDK ${{ matrix.java }}
uses: actions/setup-java@v3
with:
distribution: temurin # (https://github.com/marketplace/actions/setup-java-jdk#supported-distributions)
java-version: ${{ matrix.java }}
architecture: x64
cache: "gradle"
###########################################
## Checkstyle
###########################################
- name: Run checkstyle
uses: dbelyaev/action-checkstyle@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
reporter: github-pr-check
checkstyle_config: google_checks.xml
level: error