fixed test #1744
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: [sdk, messagingpush, messaginginapp] # android modules | |
name: Android Lint (${{ matrix.module }}) | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up JDK | |
uses: actions/setup-java@v3 | |
with: | |
distribution: 'adopt' | |
java-version: '11' # Robolectric requires v9, but we choose LTS: https://adoptopenjdk.net/ | |
- name: Setup Android SDK | |
uses: android-actions/setup-android@v2 | |
- 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 | |
- name: Set up JDK | |
uses: actions/setup-java@v3 | |
with: | |
distribution: 'adopt' | |
java-version: '11' # Robolectric requires v9, but we choose LTS: https://adoptopenjdk.net/ | |
- name: Install and run ktlint | |
run: make lint-install && make lint-no-format |