Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run tests and linters for all modules #289

Merged
merged 3 commits into from
Nov 7, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 25 additions & 9 deletions .github/workflows/code_quality.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Code quality
on:
pull_request:
types: [synchronize, opened, reopened, ready_for_review]
types: [ synchronize, opened, reopened, ready_for_review ]
permissions: read-all

jobs:
Expand All @@ -20,17 +20,25 @@ jobs:
distribution: 'temurin'
cache: 'gradle'
- uses: reviewdog/action-setup@v1
- name: Run android linter
- name: Run Android Lint
uses: gradle/gradle-build-action@v2
with:
arguments: lintProdDebug
- name: review linter
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 linter
- name: Check Android Lint
uses: dvdandroid/action-android-lint@master
with:
github_token: ${{ secrets.RTS_DEVOPS_GITHUB_TOKEN }}
Expand All @@ -49,14 +57,14 @@ jobs:
distribution: 'temurin'
cache: 'gradle'
- uses: reviewdog/action-setup@v1
- name: review detekt
- 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
- name: Check Detekt
uses: alaegin/[email protected]
with:
github_token: ${{ secrets.RTS_DEVOPS_GITHUB_TOKEN }}
Expand All @@ -78,7 +86,15 @@ jobs:
java-version: '17'
distribution: 'temurin'
cache: 'gradle'
- name: Run android local unit test
- name: Run Android local Unit Tests
uses: gradle/gradle-build-action@v2
with:
arguments: testProdDebug
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