-
Notifications
You must be signed in to change notification settings - Fork 9
34 lines (29 loc) · 1.14 KB
/
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
name: Lint
# only run on PRs and when push a commit on a branch that we don't deploy on.
on: [push, pull_request]
jobs:
android-lint:
runs-on: ubuntu-latest
strategy:
matrix:
module: [core, datapipelines, messagingpush, messaginginapp, tracking-migration] # android modules
name: Android Lint (${{ matrix.module }})
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup-android
- name: Run lint (${{ matrix.module }})
run: ./gradlew :${{ matrix.module }}:lintDebug
- name: Parse lint results (${{ matrix.module }})
uses: yutailang0119/[email protected]
with:
report-path: ${{ matrix.module }}/build/reports/lint-results-debug.xml
if: ${{ always() }} # if running tests fails, we still want to parse the test results
# Task to verify ktlint already ran for all commits. This verifies you have your git hooks installed.
kotlin-lint:
runs-on: ubuntu-latest
name: Kotlin Lint
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup-android
- name: Install and run ktlint
run: make lint-install && make lint-no-format