-
Notifications
You must be signed in to change notification settings - Fork 1
48 lines (41 loc) · 992 Bytes
/
lint.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
name: Run lint checks
on:
workflow_call:
secrets:
pat:
required: true
jobs:
run-ktlint:
runs-on: ubuntu-latest
name: Run ktlint
steps:
- uses: actions/checkout@v4
- name: Run ktlint
run: static-analysis/run-ktlint.sh
run-detekt:
runs-on: ubuntu-latest
name: Run detekt
steps:
- uses: actions/checkout@v4
- name: Setup Java
uses: actions/setup-java@v4
with:
java-version: 17
distribution: temurin
- name: Run detekt
run: static-analysis/run-detekt.sh
run-lint:
runs-on: ubuntu-latest
name: Run lint
steps:
- uses: actions/checkout@v4
- name: Setup Java
uses: actions/setup-java@v4
with:
java-version: 17
distribution: temurin
- name: Run lint
run: ./gradlew lint
- name: Print lint report(s)
if: ${{ failure() }}
run: cat **/build/reports/lint-results-*.xml