20 missing media statistics #20
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: Code quality | |
on: | |
merge_group: | |
pull_request: | |
types: [synchronize, opened, reopened, ready_for_review] | |
jobs: | |
android-lint: | |
if: github.event.pull_request.draft == false | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v3 | |
with: | |
java-version: '17' | |
distribution: 'temurin' | |
- uses: reviewdog/action-setup@v1 | |
- name: Run android linter | |
uses: gradle/gradle-build-action@v2 | |
with: | |
arguments: lint | |
- name: review linter | |
uses: dvdandroid/action-android-lint@master | |
with: | |
github_token: ${{ secrets.RTS_DEVOPS_GITHUB_TOKEN }} | |
lint_xml_file: ./build/reports/android-lint.xml | |
reporter: github-pr-review | |
- name: check linter | |
uses: dvdandroid/action-android-lint@master | |
with: | |
github_token: ${{ secrets.RTS_DEVOPS_GITHUB_TOKEN }} | |
lint_xml_file: ./build/reports/android-lint.xml | |
reporter: github-pr-check | |
detekt: | |
if: github.event.pull_request.draft == false | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v3 | |
with: | |
java-version: '17' | |
distribution: 'temurin' | |
- uses: reviewdog/action-setup@v1 | |
- name: review detekt | |
uses: alaegin/[email protected] | |
with: | |
github_token: ${{ secrets.RTS_DEVOPS_GITHUB_TOKEN }} | |
detekt_config: config/detekt.yml | |
reviewdog_reporter: github-pr-review | |
detekt_excludes: "**/build/**,**/.idea/**,**/buildSrc/**,**/androidTest/**,**/test/**,**/resources/**" | |
- name: check detekt | |
uses: alaegin/[email protected] | |
with: | |
github_token: ${{ secrets.RTS_DEVOPS_GITHUB_TOKEN }} | |
detekt_config: config/detekt.yml | |
reviewdog_reporter: github-pr-check | |
detekt_excludes: "**/build/**,**/.idea/**,**/buildSrc/**,**/androidTest/**,**/test/**,**/resources/**" | |
android-unit-test: | |
if: github.event.pull_request.draft == false | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v3 | |
with: | |
java-version: '17' | |
distribution: 'temurin' | |
- name: Run android local unit test | |
uses: gradle/gradle-build-action@v2 | |
with: | |
arguments: testDebug |