Extract the logic from MediaRouteButton
#73
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: Quality | |
on: | |
merge_group: | |
push: | |
branches: | |
- main | |
pull_request: | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
android-lint: | |
name: Android Lint | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Set up Java | |
uses: actions/setup-java@v4 | |
with: | |
java-version: '17' | |
distribution: 'temurin' | |
- name: Set up Gradle | |
uses: gradle/actions/setup-gradle@v4 | |
- name: Run Android Lint | |
run: ./gradlew lintDebug | |
- name: Upload Android Lint results | |
uses: github/codeql-action/upload-sarif@v3 | |
if: success() || failure() | |
with: | |
sarif_file: demo/build/reports/lint-results-debug.sarif | |
category: android-lint | |
detekt: | |
name: Detekt | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Set up Java | |
uses: actions/setup-java@v4 | |
with: | |
java-version: '17' | |
distribution: 'temurin' | |
- name: Set up Gradle | |
uses: gradle/actions/setup-gradle@v4 | |
- name: Run Detekt | |
run: ./gradlew detektDebug | |
- name: Upload Detekt results | |
uses: github/codeql-action/upload-sarif@v3 | |
if: success() || failure() | |
with: | |
sarif_file: demo/build/reports/detekt/debug.sarif | |
category: detekt | |
unit-test: | |
name: Unit Tests | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Set up Java | |
uses: actions/setup-java@v4 | |
with: | |
java-version: '17' | |
distribution: 'temurin' | |
- name: Set up Gradle | |
uses: gradle/actions/setup-gradle@v4 | |
- name: Run Unit Tests | |
run: ./gradlew koverXmlReportDebug | |
- name: Report Code Coverage | |
if: ${{ github.event_name == 'pull_request' }} | |
uses: madrapps/[email protected] | |
with: | |
paths: ${{ github.workspace }}/**/build/reports/kover/reportDebug.xml | |
token: ${{ secrets.GITHUB_TOKEN }} | |
min-coverage-overall: 0 | |
min-coverage-changed-files: 0 | |
update-comment: true | |
title: Code Coverage | |
pass-emoji: 🟢 | |
fail-emoji: 🔴 | |
publish-to-maven-local: | |
name: Publish to Maven local | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Set up Java | |
uses: actions/setup-java@v4 | |
with: | |
java-version: '17' | |
distribution: 'temurin' | |
- name: Set up Gradle | |
uses: gradle/actions/setup-gradle@v4 | |
- name: Publish to Maven local | |
run: ./gradlew publishToMavenLocal |