Add simple GitHub action for static checks and tests #1
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: Testing build (on PR) | |
on: | |
pull_request: | |
branches: [ main ] | |
types: [ labeled, opened, synchronize, reopened ] | |
jobs: | |
testing_build: | |
runs-on: ubuntu-latest | |
if: contains(github.event.pull_request.labels.*.name, 'testers needed') | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-java@v4 | |
with: | |
java-version: 17 | |
distribution: 'temurin' | |
- name: Build debug APK | |
run: ./gradlew assembleCoreDebug | |
- name: Upload APK | |
uses: actions/upload-artifact@v4 | |
with: | |
name: 'unsigned-app-debug' | |
path: 'app/build/outputs/apk/core/debug/launcher-core-debug.apk' |