Testing new builds #3442
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |