Last active
June 16, 2024 03:36
-
-
Save krzdabrowski/ef191ac510d771682a064b59343c97e2 to your computer and use it in GitHub Desktop.
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: CI workflow | |
on: pull_request | |
jobs: | |
build: | |
runs-on: macos-13 | |
timeout-minutes: 30 | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Setup JDK environment | |
uses: actions/setup-java@v3 | |
with: | |
distribution: 'zulu' | |
java-version: 17 | |
- name: Setup Gradle | |
uses: gradle/gradle-build-action@v2 | |
- name: Run KtLint | |
uses: gradle/gradle-build-action@v2 | |
with: | |
arguments: lintKotlin | |
- name: Run Detekt | |
uses: gradle/gradle-build-action@v2 | |
with: | |
arguments: detekt | |
- name: Assemble app | |
uses: gradle/gradle-build-action@v2 | |
with: | |
arguments: assembleDebug --stacktrace | |
- name: Run unit tests | |
uses: gradle/gradle-build-action@v2 | |
with: | |
arguments: app:testDebugUnitTest basic-feature:testDebugUnitTest --stacktrace | |
- name: Run instrumentation tests | |
uses: ReactiveCircus/android-emulator-runner@v2 | |
with: | |
api-level: 26 | |
disable-animations: false | |
script: ./gradlew basic-feature:connectedCheck --stacktrace |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment