Bump actions (#370) #653
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: Build | |
env: | |
EXODUS_API_KEY: ${{secrets.EXODUS_API_KEY}} | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
paths-ignore: | |
-'fastlane/**' | |
-'README.md' | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout the code | |
uses: actions/checkout@v4 | |
- name: Setup Java JDK | |
uses: actions/setup-java@v4 | |
with: | |
distribution: 'temurin' | |
java-version: 17 | |
- name: Run Kotlin Linter | |
run: ./gradlew app:ktlintCheck --info | |
- name: Generate debug build | |
run: ./gradlew assembleDebug | |
- name: Execute exodus-standalone | |
uses: docker://exodusprivacy/exodus-standalone:v1.4.0 | |
with: | |
args: /github/workspace/app/build/outputs/apk/debug/app-debug.apk | |
- name: Upload APK | |
uses: actions/upload-artifact@v3 | |
with: | |
name: app_debug | |
path: app/build/outputs/apk/debug/app-debug.apk |