Skip to content
This repository has been archived by the owner on Jul 16, 2024. It is now read-only.

Update dependency io.nlopez.compose.rules:detekt to v0.4.5 #2056

Update dependency io.nlopez.compose.rules:detekt to v0.4.5

Update dependency io.nlopez.compose.rules:detekt to v0.4.5 #2056

Workflow file for this run

name: CI
on:
push:
branches:
- trunk
tags:
- '**'
paths-ignore:
- '.idea/**'
- '.gitattributes'
- '.github/**.json'
- '.gitignore'
- '.gitmodules'
- '**.md'
- 'LICENSE'
- 'NOTICE'
pull_request:
paths-ignore:
- '.idea/**'
- '.gitattributes'
- '.github/**.json'
- '.gitignore'
- '.gitmodules'
- '**.md'
- 'LICENSE'
- 'NOTICE'
workflow_dispatch:
jobs:
wrapper-validation:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: gradle/actions/wrapper-validation@v3
check-style:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: 21
- uses: gradle/actions/setup-gradle@v3
with:
cache-encryption-key: Da25KUVSE5jbGds2zXmfXw==
- run: ./gradlew spotlessCheck
check-api:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: 21
- uses: gradle/actions/setup-gradle@v3
with:
cache-encryption-key: Da25KUVSE5jbGds2zXmfXw==
- run: ./gradlew apiCheck
detekt:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: 21
- uses: gradle/actions/setup-gradle@v3
with:
cache-encryption-key: Da25KUVSE5jbGds2zXmfXw==
- run: ./gradlew detekt
android-lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: 21
- uses: gradle/actions/setup-gradle@v3
with:
cache-encryption-key: Da25KUVSE5jbGds2zXmfXw==
- run: ./gradlew lintDebug
unit-tests:
runs-on: ubuntu-latest
timeout-minutes: 50
if: github.event_name == 'pull_request' && contains(github.event.pull_request.labels.*.name, 'unit-tests')
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: 21
- uses: gradle/actions/setup-gradle@v3
with:
cache-encryption-key: Da25KUVSE5jbGds2zXmfXw==
- run: ./gradlew testDebugUnitTest
instrumentation-tests:
runs-on: macos-latest
timeout-minutes: 50
if: github.event_name == 'pull_request' && contains(github.event.pull_request.labels.*.name, 'instrumentation-tests')
strategy:
fail-fast: true
matrix:
api-level: [ 21, 29 ]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: 21
- uses: gradle/actions/setup-gradle@v3
with:
cache-encryption-key: Da25KUVSE5jbGds2zXmfXw==
- uses: actions/cache@v4
id: avd-cache
with:
path: |
~/.android/avd/*
~/.android/adb*
key: avd-${{ matrix.api-level }}
- if: steps.avd-cache.outputs.cache-hit != 'true'
uses: reactivecircus/android-emulator-runner@v2
with:
api-level: ${{ matrix.api-level }}
force-avd-creation: false
emulator-options: -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
disable-animations: false
script: echo "Generated AVD snapshot for caching."
- uses: reactivecircus/android-emulator-runner@v2
with:
api-level: ${{ matrix.api-level }}
force-avd-creation: false
emulator-options: -no-snapshot-save -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
disable-animations: true
script: ./gradlew connectedDebugAndroidTest
build:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: 21
- uses: gradle/actions/setup-gradle@v3
with:
cache-encryption-key: Da25KUVSE5jbGds2zXmfXw==
dependency-graph: ${{ github.ref == 'refs/heads/trunk' && 'generate-and-submit' || 'disabled'}}
gradle-home-cache-cleanup: true
- run: ./gradlew app:assembleProdRelease
- uses: actions/upload-artifact@v4
with:
name: build-outputs
path: app/build/outputs/apk/prod/release/*.apk
release:
runs-on: ubuntu-latest
if: github.repository_owner == 'Goooler' && startsWith(github.ref, 'refs/tags/')
needs: build
permissions:
contents: write
steps:
- uses: actions/checkout@v4
- uses: actions/download-artifact@v4
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
gh release create ${{ github.ref_name }} **/*.apk --generate-notes