Skip to content

Commit

Permalink
Run module check as a separate job (#23)
Browse files Browse the repository at this point in the history
* Run module check as a separate job

* Disable gradle daemon for modulecheck job
  • Loading branch information
jakoss authored Sep 21, 2022
1 parent 8050f25 commit 9b7a1a7
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion .github/workflows/android.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ jobs:
uses: gradle/gradle-build-action@v2
id: gradle
with:
arguments: moduleCheck lintKotlin :app:assembleDebug :app:lintDebug --stacktrace # run tests here
arguments: lintKotlin :app:assembleDebug :app:lintDebug --stacktrace # run tests here
if: steps.commit_formatted_code.outputs.pushed == 'false'

actionlint:
Expand All @@ -80,3 +80,22 @@ jobs:
detekt_config: ./config/detekt/detekt.yml
detekt_plugins: ./config/detekt/plugins/detekt-rules-compose-1.2.1.jar
reviewdog_filter: file # always analyse whole file that was added/modified

modulecheck:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up JDK 11
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: 11
- name: Validating Gradle wrapper checksum
uses: gradle/wrapper-validation-action@v1

- run: chmod +x ./gradlew

- name: Check modules
uses: gradle/gradle-build-action@v2
with:
arguments: moduleCheck --no-daemon

0 comments on commit 9b7a1a7

Please sign in to comment.