-
-
Notifications
You must be signed in to change notification settings - Fork 320
59 lines (48 loc) 路 1.77 KB
/
Copy pathanalysis.yml
File metadata and controls
59 lines (48 loc) 路 1.77 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
55
56
57
58
59
# SPDX-FileCopyrightText: 2025 Marcel Hibbe <dev@mhibbe.de>
# SPDX-License-Identifier: GPL-3.0-or-later
name: "PR Analysis"
on:
pull_request:
branches: [ "master", "main", "stable-*" ]
push:
branches: [ "master", "main", "stable-*" ]
permissions:
contents: write
pull-requests: write
concurrency:
group: analysis-wrapper-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
analysis:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup JDK 17
uses: actions/setup-java@v3
with:
distribution: temurin
java-version: 17
cache: gradle
- name: Run Lint
run: |
mkdir -p "$HOME/.gradle"
{
echo "org.gradle.jvmargs=-Xmx1g -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8"
echo "org.gradle.configureondemand=true"
echo "kapt.incremental.apt=true"
} > "$HOME/.gradle/gradle.properties"
./gradlew --no-daemon --no-configuration-cache clean lintGplayDebug
- name: Run SpotBugs
run: |
./gradlew --no-configuration-cache spotbugsGplayDebug
- name: Upload Lint SARIF
uses: github/codeql-action/upload-sarif@v4
with:
sarif_file: app/build/reports/lint-results-gplayDebug.sarif
- name: Upload SpotBugs SARIF
uses: github/codeql-action/upload-sarif@v4
with:
sarif_file: app/build/reports/spotbugs-results.sarif