-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (33 loc) · 1004 Bytes
/
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
name: Check Style
concurrency: # Cancel currently running style checks when a new one is started
group: style-${{ github.ref }}
cancel-in-progress: true
on:
pull_request:
env:
GRADLE_OPTS: -Dorg.gradle.jvmargs="-Xmx3g"
jobs:
checkStyle:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'adopt'
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4
- name: Validate Gradle Wrapper
uses: gradle/actions/wrapper-validation@v4
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Detekt
run: ./gradlew detekt
- name: Upload detekt SARIF files
if: success() || failure()
uses: github/codeql-action/upload-sarif@v3
with:
sarif_file: 'build/reports/detekt/merge.sarif'
category: detekt