Versions bumped, some cleanup and Fdroid Inclusion Policy changes #393
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: 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@v3 | |
with: | |
distribution: 'temurin' | |
java-version: 17 | |
cache: 'gradle' | |
- name: "Validate Gradle wrapper" | |
uses: gradle/wrapper-validation-action@v1 | |
- name: "Assemble Debug" | |
run: ./gradlew :android:assembleDebug --no-daemon | |
- name: "Upload Debug APK to GitHub" | |
uses: actions/upload-artifact@v3 | |
with: | |
name: Debug APK | |
path: zeapp/android/build/outputs/apk/debug/android-debug.apk | |
format: | |
runs-on: ubuntu-latest | |
steps: | |
- name: "Checkout Repo" | |
uses: actions/checkout@v4 | |
- name: "Setup Java 17" | |
uses: actions/setup-java@v3 | |
with: | |
distribution: 'temurin' | |
java-version: 17 | |
cache: 'gradle' | |
- name: "Validate Gradle wrapper" | |
uses: gradle/wrapper-validation-action@v1 | |
- name: "Lint" | |
run: ./gradlew ktlintFormat --no-daemon | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- name: "Checkout Repo" | |
uses: actions/checkout@v4 | |
- name: "Setup Java 17" | |
uses: actions/setup-java@v3 | |
with: | |
distribution: 'temurin' | |
java-version: 17 | |
cache: 'gradle' | |
- name: "Validate Gradle wrapper" | |
uses: gradle/wrapper-validation-action@v1 | |
- 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@v3 | |
with: | |
distribution: 'temurin' | |
java-version: 17 | |
cache: 'gradle' | |
- name: "Validate Gradle wrapper" | |
uses: gradle/wrapper-validation-action@v1 | |
- 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@v3 | |
with: | |
distribution: 'temurin' | |
java-version: 17 | |
cache: 'gradle' | |
- name: "Validate Gradle wrapper" | |
uses: gradle/wrapper-validation-action@v1 | |
- name: "Test" | |
run: ./gradlew linuxTest | |