-
Notifications
You must be signed in to change notification settings - Fork 4
49 lines (47 loc) · 1.19 KB
/
static-analysis.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
45
46
47
48
49
name: Static Analysis
on:
pull_request:
branches:
- main
push:
branches:
- main
jobs:
commit-lint:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: wagoid/commitlint-github-action@v6
with:
configFile: .commitlintrc.yml
detekt:
runs-on: ubuntu-24.04
env:
GRADLE_OPTS: -Dorg.gradle.daemon=false
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4
- name: Run Detekt
run: ./gradlew --stacktrace detekt
- name: Upload SARIF File
uses: github/codeql-action/upload-sarif@v3
if: ${{ always() }} # Upload even if the previous step failed.
with:
sarif_file: build/reports/detekt/detekt.sarif
reuse:
runs-on: ubuntu-24.04
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: "3.10"
- name: Check REUSE Compliance
run: |
pip install --user reuse
~/.local/bin/reuse lint