-
Notifications
You must be signed in to change notification settings - Fork 1
36 lines (33 loc) · 961 Bytes
/
check.yml
File metadata and controls
36 lines (33 loc) · 961 Bytes
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
name: check
on:
push:
branches:
- '**'
workflow_call:
concurrency:
group: ${{ github.workflow }}${{ github.ref_name != github.event.repository.default_branch && github.ref || github.run_id }}
cancel-in-progress: ${{ github.ref_name != github.event.repository.default_branch }}
jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up JDK
uses: actions/setup-java@v3
with:
distribution: temurin
java-version: 21
- name: Validate Gradle wrapper
uses: gradle/wrapper-validation-action@v1.0.6
- name: Checkstyle
uses: gradle/gradle-build-action@v2
with:
arguments: checkstyleMain checkstyleTest
- name: PMD
uses: gradle/gradle-build-action@v2
with:
arguments: pmdMain pmdTest
- name: Test
uses: gradle/gradle-build-action@v2
with:
arguments: test