Skip to content

Bump io.nlopez.compose.rules:ktlint from 0.4.19 to 0.4.22 (#502) #404

Bump io.nlopez.compose.rules:ktlint from 0.4.19 to 0.4.22 (#502)

Bump io.nlopez.compose.rules:ktlint from 0.4.19 to 0.4.22 (#502) #404

Workflow file for this run

name: Android CI
on:
push:
branches: [main]
paths-ignore:
- 'README.md'
pull_request:
branches: [main]
paths-ignore:
- 'README.md'
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 17
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4
- name: Build
run: ./gradlew assembleDebug
- name: Upload artifact
if: github.event_name == 'pull_request'
uses: actions/upload-artifact@v4
id: app-debug-apk-upload-step
with:
name: app-debug-apk
path: app/build/outputs/apk/debug/app-debug.apk
if-no-files-found: error
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 17
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4
- name: Lint
run: ./gradlew ktlint
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 17
- name: Enable KVM group perms
run: |
echo 'KERNEL=="kvm", GROUP="kvm", MODE="0666", OPTIONS+="static_node=kvm"' | sudo tee /etc/udev/rules.d/99-kvm4all.rules
sudo udevadm control --reload-rules
sudo udevadm trigger --name-match=kvm
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4
- name: Unit tests
run: ./gradlew test
- name: UI tests
uses: reactivecircus/android-emulator-runner@v2
with:
api-level: 30
target: google_apis
script: ./gradlew connectedCheck