Skip to content

implement per-app languages #676

implement per-app languages

implement per-app languages #676

Workflow file for this run

name: PR
on:
pull_request:
paths-ignore:
- "**/README.md"
- "assets/**"
defaults:
run:
shell: bash
working-directory: zeapp
jobs:
build-debug:
runs-on: ubuntu-latest
steps:
- name: "Checkout Repo"
uses: actions/checkout@v4
- name: "Setup Java 17"
uses: actions/setup-java@v4
with:
distribution: "temurin"
java-version: 17
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3
- name: "Validate Gradle wrapper"
uses: gradle/actions/wrapper-validation@v3
- name: "Assemble Debug"
run: ./gradlew :android:assembleDebug --no-daemon
- name: "Upload Debug APK to GitHub"
uses: actions/upload-artifact@v4
with:
name: Debug APK
path: zeapp/android/build/outputs/apk/debug/android-debug.apk
build-debug-windows:
runs-on: windows-latest
steps:
- name: "Checkout Repo"
uses: actions/checkout@v4
- name: "Setup Java 17"
uses: actions/setup-java@v4
with:
distribution: "temurin"
java-version: 17
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3
- name: "Validate Gradle wrapper"
uses: gradle/actions/wrapper-validation@v3
- name: "Assemble Debug"
run: ./gradlew :android:assembleDebug --no-daemon
# Not uploading the APK cause the other step will generate the same thing anyway
ktlint:
runs-on: ubuntu-latest
steps:
- name: "Checkout Repo"
uses: actions/checkout@v4
- name: "Setup Java 17"
uses: actions/setup-java@v4
with:
distribution: "temurin"
java-version: 17
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3
- name: "Validate Gradle wrapper"
uses: gradle/actions/wrapper-validation@v3
- name: "ktLint"
run: ./gradlew ktlintCheck --no-daemon
lint:
runs-on: ubuntu-latest
steps:
- name: "Checkout Repo"
uses: actions/checkout@v4
- name: "Setup Java 17"
uses: actions/setup-java@v4
with:
distribution: "temurin"
java-version: 17
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3
- name: "Validate Gradle wrapper"
uses: gradle/actions/wrapper-validation@v3
- name: "Lint"
run: ./gradlew lint --no-daemon
detekt:
runs-on: ubuntu-latest
steps:
- name: "Checkout Repo"
uses: actions/checkout@v4
- name: "Setup Java 17"
uses: actions/setup-java@v4
with:
distribution: "temurin"
java-version: 17
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3
- name: "Validate Gradle wrapper"
uses: gradle/actions/wrapper-validation@v3
- name: "Detekt"
run: ./gradlew detekt
test:
runs-on: ubuntu-latest
steps:
- name: "Checkout Repo"
uses: actions/checkout@v4
- name: "Setup Java 17"
uses: actions/setup-java@v4
with:
distribution: "temurin"
java-version: 17
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3
- name: "Validate Gradle wrapper"
uses: gradle/actions/wrapper-validation@v3
- name: "Test"
run: ./gradlew linuxTest