-
-
Notifications
You must be signed in to change notification settings - Fork 38
33 lines (31 loc) · 915 Bytes
/
detekt.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
name: Analyze code using detekt
on:
push:
branches:
- 'master'
pull_request:
branches:
- '*'
jobs:
analyze:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4.0.1
with:
cache-encryption-key: ${{ secrets.GRADLE_ENCRYPTION_KEY }}
cache-read-only: ${{ github.ref != 'refs/heads/master' }}
- name: Analyze code using detekt
run: ./gradlew -DLibrariesOnly=true detektAll --stacktrace --configuration-cache
- uses: github/codeql-action/upload-sarif@v3
if: success() || failure()
with:
sarif_file: build/reports/detekt/merge.sarif
category: lint