Compose: shimmer #390
Workflow file for this run
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: Android Debug Build | |
on: | |
push: | |
branches: | |
- dev | |
pull_request: | |
jobs: | |
detekt: | |
name: Detekt | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Run Detekt | |
uses: natiginfo/[email protected] | |
with: | |
args: --config detekt.yaml --language-version 1.7.20 --input modules | |
test: | |
name: Unit Tests | |
runs-on: ubuntu-latest | |
needs: detekt | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v3 | |
with: | |
java-version: 17 | |
distribution: adopt | |
- name: Setup Gradle | |
uses: gradle/gradle-build-action@v2 | |
with: | |
cache-read-only: false | |
- name: Materialize google services | |
run: .ci/materialize.sh $GOOGLE_SERVICES_DEBUG modules/app/google-services.json | |
env: | |
GOOGLE_SERVICES_DEBUG: ${{ secrets.GOOGLE_SERVICES_DEBUG }} | |
- name: Unit tests | |
run: | | |
./gradlew -Pci testDebugUnitTest | |
env: | |
MAP_KEY: ${{ secrets.MAP_KEY }} | |
build: | |
name: Debug Build | |
runs-on: ubuntu-latest | |
needs: detekt | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v3 | |
with: | |
java-version: 17 | |
distribution: adopt | |
- name: Setup Gradle | |
uses: gradle/gradle-build-action@v2 | |
with: | |
cache-read-only: false | |
- name: Materialize google services | |
run: .ci/materialize.sh $GOOGLE_SERVICES_DEBUG modules/app/google-services.json | |
env: | |
GOOGLE_SERVICES_DEBUG: ${{ secrets.GOOGLE_SERVICES_DEBUG }} | |
- name: Build with Gradle | |
run: ./gradlew -Pci :app:assembleDebug | |
env: | |
MAP_KEY: ${{ secrets.MAP_KEY }} | |
- name: Upload Debug APK | |
uses: actions/upload-artifact@v1 | |
with: | |
name: App Debug | |
path: modules/app/build/outputs/apk/debug/app-debug.apk |