Skip to content

Improve navigation in the TV demo app #482

Improve navigation in the TV demo app

Improve navigation in the TV demo app #482

Workflow file for this run

name: Code quality
on:
pull_request:
types: [ synchronize, opened, reopened, ready_for_review ]
permissions: read-all
jobs:
android-lint:
if: github.event.pull_request.draft == false
runs-on: ubuntu-latest
env:
USERNAME: ${{ github.actor }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v3
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
cache: 'gradle'
- uses: reviewdog/action-setup@v1
- name: Run Android Lint
uses: gradle/gradle-build-action@v2
with:
arguments: |
:pillarbox-analytics:lintDebug
:pillarbox-core-business:lintDebug
:pillarbox-demo:lintProdDebug
:pillarbox-demo-shared:lintDebug
:pillarbox-demo-tv:lintDebug
:pillarbox-player:lintDebug
:pillarbox-player-testutils:lintDebug
:pillarbox-ui:lintDebug
- name: Review Android Lint
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 Android Lint
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'
cache: 'gradle'
- uses: reviewdog/action-setup@v1
- name: Review Detekt
uses: alaegin/[email protected]
with:
github_token: ${{ secrets.RTS_DEVOPS_GITHUB_TOKEN }}
detekt_config: config/detekt/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/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
env:
USERNAME: ${{ github.actor }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v3
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
cache: 'gradle'
- name: Run Android local Unit Tests
uses: gradle/gradle-build-action@v2
with:
arguments: |
:pillarbox-analytics:testDebugUnitTest
:pillarbox-core-business:testDebugUnitTest
:pillarbox-demo:testProdDebugUnitTest
:pillarbox-demo-shared:testDebugUnitTest
:pillarbox-demo-tv:testDebugUnitTest
:pillarbox-player:testDebugUnitTest
:pillarbox-player-testutils:testDebugUnitTest
:pillarbox-ui:testDebugUnitTest