Skip to content

Instantly share code, notes, and snippets.

@krzdabrowski
Last active September 6, 2024 15:19
Show Gist options
  • Save krzdabrowski/ef191ac510d771682a064b59343c97e2 to your computer and use it in GitHub Desktop.
Save krzdabrowski/ef191ac510d771682a064b59343c97e2 to your computer and use it in GitHub Desktop.
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@v4
with:
distribution: 'zulu'
java-version: 17
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4
- name: Run KtLint
run: ./gradlew lintKotlin
- name: Run Detekt
run: ./gradlew detekt
- name: Assemble app
run: ./gradlew assembleDebug --stacktrace
- name: Run unit tests
run: ./gradlew app:testDebugUnitTest basic-feature:testDebugUnitTest --stacktrace
- name: Run Compose UI 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